【git】本地分支与远程分支的关联关系

reference:

本地分支与远程分支的关联关系

https://www.jianshu.com/p/55b6720264ee

Git:解决head detached at xxxx

http://www.garinzhang.com/coding/55.html

删除本地分支 

https://blog.csdn.net/github_27263697/article/details/79373997

git reset 命令学习

https://blog.csdn.net/qq_36431213/article/details/78858848

Git:解决head detached at xxxx 的解决方法

检出一个新的本地分支(local_name 本地分支名;remote_name 远程分支名)
git checkout -b local_name origin/remote_name
查看所有分支
git branch -a
删除本地没有用的分支
git git branch -d <BranchName>
查看本地分支与远程分支的关联关系
$ git branch -vv

猜你喜欢

转载自blog.csdn.net/qqyuanhao163/article/details/88651250
今日推荐