Py学习  »  Git

[精华] GIT操作

Py站长 • 9 年前 • 4291 次点击  

会持续更新

分支操作:

  • 建分支 git checkout -b mybranch1
  • 完成创建分支:git push -u origin mybranch1
  • 当前使用哪个分支:git branch -r 或 git ls-remote
  • 删除分支:git branch -d mybranch1
  • 切换分支:git checkout master
  • 看当前的工作分支:git branch

Reference:

http://www.worldhello.net/

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/650
 
4291 次点击  
文章 [ 3 ]  |  最新文章 9 年前
VA
Reply   •   1 楼
VA    9 年前

推荐git 自带contrib/completion/git-completion.bash 的bash脚本可以帮助自动tab补全

Py站长
Reply   •   2 楼
Py站长    9 年前

@走遍北京的德福小猪-weibo git是大势所趋,早换早安心,哈哈

走遍北京的德福小猪-weibo
Reply   •   3 楼
走遍北京的德福小猪-weibo    9 年前

呵呵,我最近正在学习git,以前都是使用SVN,现在换git学习学习。