Wednesday, July 13, 2016

Creating local branches in Git

If you ever want to do localized development and refactoring without requiring a special branch for the entire team, Git allows you to do that in the form of creating a local branch.

If you are a Visual Studio developer, Microsoft offers an article that provides insight on how to create local branches:

Creating work in Git Branches

https://www.visualstudio.com/en-us/docs/git/tutorial/branches

Now, if you want to merge that code BACK into Git, then you can use a command called Rebase as follows:

Managing history and merging changes with Git Rebase

https://www.visualstudio.com/en-us/docs/git/tutorial/rebase


In these Visual Studio articles, if you are looking for screenshots on how to do this, it may not be readily obvious where those screenshots exist.

When you get to the section in the articles where there are buttons for "Command Line" and "Visual Studio", you have to click on the Visual Studio button to expand the section including the screenshot:





No comments:

Post a Comment