- Pick the branch name. A branch should be associated with a single bug or task so branch name such as Task-123 or Bug-456 are acceptable because they map to the specific work item being addressed.
- From a console window, navigate to the directory into which a git repository will be cloned:
- Running the following from the console windows (assuming the branch to be created is Task-335 (which maps to Task-335: Fix PiplelineStageStatus names (changed Free to New): git clone https://YOUR_VANITYNAME_HERE.visualstudio.com/_git/Server
- To see the current branch simply type the following:
git status
Invoking "git status on a branch with no code modification simply displays the current branch name:
CD Server
git checkout -b Task-335
The URL used in cloning will depend on the Git provider used (GitHub, BitBucket, VisualStudio.com). The link above is formatted for VisualStudio.com which is provided by Microsoft (for free) but is git all the same.
- Remember "git clone" is cloning a repository not simply getting a branch as you would in TFS or SVN. The name clone is precisely what is happening.
- The "git checkout -b" is the action that creates the new branch.
No comments :
Post a Comment