目的: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 畫面:無,只能利用語法操作
沒有留言:
張貼留言