Creating a new local branch
A Git branch is just a small reference to keep an exact commit history. It does not create multiple copies of your source. As it uses the history information stored in commits to recreate the files on a branch, it's very easy to create it. When you commit changes to a branch, it will not affect the other branches because it creates them in isolation. Later, you can share branches with other members or merge the changes into the main branch.
To create a new local branch from another one (for example, the master), right-click on that branch from Visual Studio Team Explorer and then, from the context menu, select the menu item New Local Branch From....
Enter the name of the new branch in the input box and select the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access