目的:Download new branches and commits from a remote repo, but do not merge them into your local branches
git 語法:git fetch
Team Explorer 畫面:
目的:Merge updates from a remote repo into your local repo
git 語法:git pull remote branchname
Team Explorer 畫面:
目的:Publish a local branch to a remote repo
git 語法:git push -u remote branchname
Team Explorer 畫面:
目的:Synchronize your local branch with a remote branch, pushing your local changes and pulling remote ones
git 語法:
- git pull remote branchname
- git push -u remote branchname
目的:Force push a branch, rewriting the remote branch history with the history of your current branch
git 語法:git push --force -u origin remote_branchname
Team Explorer 畫面:無,只能利用語法操作
![[VSTS] Git command reference - Sync changes-1](https://c1.staticflickr.com/1/636/32636370751_91ba9d8aa6.jpg)
![[VSTS] Git command reference - Sync changes-2](https://c1.staticflickr.com/1/464/32636370651_eeb64c9558.jpg)
![[VSTS] Git command reference - Sync changes-3](https://c1.staticflickr.com/1/555/32718913016_9dbeb65ccf.jpg)
![[VSTS] Git command reference - Sync changes-4](https://c1.staticflickr.com/1/552/32636370861_3f3efb87b2.jpg)
沒有留言:
張貼留言