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 672981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:32:40+00:00 2026-05-14T00:32:40+00:00

I have been using Git for my version control for a while now, but

  • 0

I have been using Git for my version control for a while now, but I have as of yet only used the single master branch for all of my development. As my projects are getting bigger, it’s time I being worrying about stable/development branches and release tagging.

I have been reading a bunch of articles about Git branching, but I can’t seem to grasp the concepts behind how they work, and it’s causing me some frustration when attempting to setup my branches properly.

Here is my situation: I have a project that is a bunch of rake tasks specific to creating our website on a particular server. Right now, we are using Debian-based system, but we are about to switch to an Ubuntu-based system, so I would like to fork (branch) my project and create a separate branch for each server distribution and I would like each branch to be able to easily pull in all of the generic code changes from the master branch when I run git pull in either branch. From what I have read, this can be achieved by tracking the master branch, but I can’t seem to get it to work properly.

In addition to this, I also need to begin versioning a different project so that I can release it, but I don’t really know the standard Git way of achieving this. At my old company, we used TFS (which I hated) and it was pretty simple: we would create a branch from the master and call it “Version 2”. Then we would make sure version 2 was stable and fix any bugs, then every-so-often, we would merge the version 2 changes back into the master branch. Is this the Git way to achieve this, and if so, how exactly do I go about that?

So, to wrap up, I’m asking the following two separate (but very related) questions:

  1. How do I create a remote branch (on GitHub) that automatically tracks changes in master so that I can run git pull in the new branch and have all of the master changes brought in; and
  2. What is the best method for versioning my project and can you give some example commands?

Thanks very much, and please let me know if anything needs clarification!

  • 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-14T00:32:41+00:00Added an answer on May 14, 2026 at 12:32 am

    If I understand you correctly, I don’t think you’re using tracking properly. Tracking is used, for example, to track differences between a local branch and a remote copy of that same branch. Your “version 2” branch shouldn’t track master. Your local master should track origin/master (the remote repo).

    Instead of tracking (if I’m understanding you correctly at all), you should be using rebase. When master has new patches that you want in your version 2 branch, then you do (assuming you’re currently on the version 2 branch):

    git rebase master

    and hope there are no conflicts for you to resolve. Rebasing can be yet another can of worms but it’s really not bad. I’ve only been using git about 6 months, just at work, and after the initial hump it has been smooth sailing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 366k
  • Answers 366k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Look at the widthxheight> syntax widthxheight> Change as per widthxheight… May 14, 2026 at 4:44 pm
  • Editorial Team
    Editorial Team added an answer Appending to a list is thread-safe, yes. You can only… May 14, 2026 at 4:44 pm
  • Editorial Team
    Editorial Team added an answer In general, I have found that having developers (who are… May 14, 2026 at 4:44 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.