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

Git Commands Notes

时间:2016-07-01 10:17:23      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:

 

Push

Push changes to remote. (If the remote doesn‘t have the branch, the branch will be created)

git push <remote name> <branch name>

 

Renaming a branch (a complete version of push command)

This can delete a  remote branch by providing empty local branch name.

git push <remote name> <local branch name>:<remote branch name>

References:

https://help.github.com/articles/pushing-to-a-remote/

http://stackoverflow.com/questions/2765421/push-a-new-local-branch-to-a-remote-git-repository-and-track-it-too

 

Git Commands Notes

标签:

原文地址:http://www.cnblogs.com/quanben/p/5631972.html

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