首页 > 其他 > 详细

Git Commands Notes

时间:2016-07-01 10:16:46      阅读:142      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!