Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 436639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:29:53+00:00 2026-05-12T20:29:53+00:00

This might seem like a weird question, but bear with me. I’d like to

  • 0

This might seem like a weird question, but bear with me.

I’d like to (ab?)use git for a little project I’m working on, where I’d like to branch a file, yet keep the branched file within the current branch under a new name, maintaining history (allowing me to rebase changes to the original). This is similar to Subversion I suppose, in that Subversion doesn’t know branches, and just copies.

I’d like to have documents which doubles as document templates (these are plain text files, don’t worry merging will be quite possible), and in order to base a new document on another document, I’d like to just branch it.

Is this at all possible with Git? If not (and I’m actually assuming it’s not, given Git’s structure), are there any conceivable alternatives? I don’t want to move away from Git, though, as I use it for much more, so if there’s no good solution, I guess I can live with implementing my own (lightweight) branch/rebase on top of it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:29:54+00:00Added an answer on May 12, 2026 at 8:29 pm

    What’s so wrong with branching? You could pretty easily maintain a “templates” branch and move your changed documents between them.

    Say, for example:

    git checkout -b templates
    git checkout master
    git checkout templates path/to/template.ext
    cp path/to/template.ext path/to/document.ext
    # decide you want to change the template
    cp path/to/document.ext path/to/template.ext
    git commit -a -m "changed template"
    git checkout templates
    git merge master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, this might seem like a weird question, but bear with me. So I
This might seem like a little bit of a nit picky question, but I
This might seem like a very easy question for some of you folks, but
This might seem like a trivial question, but I'm a bit muddled in my
This might sound like an obvious question but I can't seem to find the
This might seem like an odd request but I'd like to use jQuery's Selectable
This might seem like a really dumb question, but I am writing an application
This might seem like a stupid question but it's been a long day. I'm
I know this might seem like a simple question, but its answer has been
This might perhaps seem like a bit of a simple question but I'm stuck

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.