码迷,mamicode.com
首页 > 其他好文 > 详细

git常用命令

时间:2017-01-24 22:49:34      阅读:278      评论:0      收藏:0      [点我收藏+]

标签:方法   one   git命令   使用   github   输入   blank   提交   str   

1.下载源代码
git clone https://github.com/xxx/xxx.git,对于低版本的git客户端,需要输入用户名和密码,如:git clone https://username:passwd@github.com/xxx/xxx.git

2.删除分支
-删除本地分支: git branch -d <branchName>
-删除远程分支: git push origin --delete <branchName>

3.重命名
-重命名本地分支: git branch -m <oldBranchName> <newBranchName>
-重命名远程分支: 在git中重命名远程分支,其实就是先删除远程分支,然后重命名本地分支,再重新提交一个远程分支。

 

更多git命令及使用方法详见:https://git-scm.com/documentation

 

git常用命令

标签:方法   one   git命令   使用   github   输入   blank   提交   str   

原文地址:http://www.cnblogs.com/nuccch/p/6347934.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!