了解該篇文章 Git command reference 的 Merge and rebase 說明並記錄
目的:Merge a branch into the current branch
git 語法:git merge branchname In the Team Explorer Branches view, right-click the branch you want to
Team Explorer 畫面:
目的:Merge a remote branch into the current branch
git 語法:git pull origin branchname
Team Explorer 畫面:
目的:Rebase your current branch onto the history of another branch
git 語法:git rebase branchname
Team Explorer 畫面:
目的:Do an interactive rebase of the last n commits
git 語法:git rebase -i "HEAD^n" (Windows)
Team Explorer 畫面:無,只能使用語法操作
目的:Cherry-pick a commit into the current branch
git 語法:git cherry-pick commitID
Team Explorer 畫面:
![[VSTS] Git command reference - Merge and rebase - 11](https://c1.staticflickr.com/1/708/31946383313_3d4f731b85.jpg)
![[VSTS] Git command reference - Merge and rebase - 12](https://c1.staticflickr.com/1/488/32760801095_c3e6b88114.jpg)
![[VSTS] Git command reference - Merge and rebase - 21](https://c1.staticflickr.com/1/611/31946383243_a01163aa0b.jpg)
![[VSTS] Git command reference - Merge and rebase - 22](https://c1.staticflickr.com/1/524/32719539356_903d5f42b7.jpg)
![[VSTS] Git command reference - Merge and rebase - 31](https://c1.staticflickr.com/1/276/31946383053_582748d041.jpg)
![[VSTS] Git command reference - Merge and rebase - 32](https://c1.staticflickr.com/1/480/32760800675_32d8172c35.jpg)
![[VSTS] Git command reference - Merge and rebase - 41](https://c1.staticflickr.com/1/599/31946382913_651a74d20e.jpg)
![[VSTS] Git command reference - Merge and rebase - 42](https://c1.staticflickr.com/1/687/31946382843_c1371da965.jpg)
沒有留言:
張貼留言