`

git 分支

    博客分类:
  • git
git 
阅读更多
git的分支包括本地分支和远程分支,查看所有分支可以输入 
git branch -a   或者 通过git show-ref查看
输出:
local-b1
* master
remotes/github/HEAD -> github/master
remotes/github/branch-1
remotes/github/master
 
以上说明有2个本地分支 master 和 local-b1,
有2个远程分支github/branch-1,github/master
远程分支是远程仓库的拷贝,本地分支是我们平时使用git 命令的操纵对象,git命令不能改变远程分支
的内容(除了git fetch,git pull外)。比如 git commit,git merge, git rebase 只是修改本地仓库的内容,而不改变远程的内容
仓库的内容,
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics