了解該篇文章 Git command reference 的 Branches 說明並記錄
目的:Create a new branch
git 語法:git branch branchname
Team Explorer 畫面:
目的:Swap to a different branch
git 語法:git checkout branchname
Team Explorer 畫面:
目的:Create and switch to a new branch
git 語法:git checkout -b branchname
Team Explorer 畫面:
目的:Delete a local branch
git 語法:git branch -d branchname
備註:Head 在該分支上的情況下,是無法刪除該分支
Team Explorer 畫面:
目的:Delete a remote branch
git 語法:git push origin --delete branchname
Team Explorer 畫面:
目的:Lock a branch, preventing updates to it
VSTS 畫面:
目的:Set a default branch in your Team Services/TFS repo
VSTS 畫面:
目的:Set a compare branch for pull requests in your Team Services/TFS repo
VSTS 畫面:
![[VSTS] Git command reference-Branches-01](https://c1.staticflickr.com/1/465/32532608902_08e68698c0.jpg)
![[VSTS] Git command reference-Branches-02](https://c1.staticflickr.com/1/729/32532608662_06968aa2ea.jpg)
![[VSTS] Git command reference-Branches-03](https://c1.staticflickr.com/1/396/32532608512_eaf21834cf.jpg)
![[VSTS] Git command reference-Branches-04](https://c1.staticflickr.com/1/618/31842534914_3896f60043.jpg)
![[VSTS] Git command reference-Branches-05](https://c1.staticflickr.com/1/367/32532609082_e48ceddbcc.jpg)
![[VSTS] Git command reference-Branches-06](https://c1.staticflickr.com/1/576/32684105446_e8724909a0_z.jpg)
![[VSTS] Git command reference-Branches-07](https://c1.staticflickr.com/1/374/32724518405_35f38acab4_z.jpg)
![[VSTS] Git command reference-Branches-08](https://c1.staticflickr.com/1/586/32684105566_de023e9633_z.jpg)
沒有留言:
張貼留言