美文网首页
Git 常用命令

Git 常用命令

作者: ShawnDu | 来源:发表于2016-04-27 18:11 被阅读31次

checkout remote branch to local

git checkout -b v2.2.0 origin/V2.2.0

删除远程分支

git push origin :<branchName>

删除本地分支

git branch -D yourBranch

如何同步 Github fork 出来的分支

git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
git fetch upstream
git checkout master
git merge upstream/master

相关文章

网友评论

      本文标题:Git 常用命令

      本文链接:https://www.haomeiwen.com/subject/zkbcrttx.html