Git远程仓库管理
git clone URL # clone一个仓库
git remote -v # 查看远程服务器地址和仓库名称
git remote show origin # 查看远程服务器仓库状态
git remote add xiaolajiao URL # 本地添加仓库
查看、切换、创建和删除分支
git br -r # 查看远程分支<remote_branch>
git br <new_branch> <remote_branch> # 根据远程分支创建本地分支
git checkout <branch> # 切换到某个分支
git br -D <branch> # 删除某个分支
推送本地分支到远程分支上去
git push origin local_branch:remote_branch
删除远程分支
git push origin --delete <branchName>
重命名本地分支:
git branch -m devel develop
在本分支合入其它分支单笔提交
git cherry-pick hashcode