Author: ChinSyun Pang
Weibo: arthinking_plus
Posted in: http://www.itzhai.com
Git常用命令
| 1 | # 将远程分支信息获取到本地 | 
分支管理
设置推送分支
| 1 | git remote add origin https://github.com/... | 
查看分支
| 1 | git branch | 
创建分支
| 1 | # 创建test分支 | 
切换分支
| 1 | # 切换到test分支 | 
删除分支
undefinedRebase 相关命令
| 1 | git rebase origin | 
Tag管理
删除远程Tag
undefined
从版本库中删除文件:
git rm -r –cached