社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

[精华] GIT操作

Py站长 • 10 年前 • 4989 次点击  

会持续更新

分支操作:

  • 建分支 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
 
4989 次点击  
文章 [ 3 ]  |  最新文章 10 年前
VA
Reply   •   1 楼
VA    10 年前

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

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

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

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

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