首页 > 其他 > 详细

[Git] set-upstream

时间:2016-02-14 06:46:46      阅读:235      评论:0      收藏:0      [点我收藏+]

When you want to push your local branch to remote branch, for the first push:

git push --set-upstream origin <branch_name>

 

The reason to set ‘up-stream‘  is that you want this branch to be tracked against, so you can just type:

git push

 

Tips:

git push -u origin <branch_name>

is the same the --set-upstream

 

[Git] set-upstream

原文:http://www.cnblogs.com/Answer1215/p/5188520.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!