git
2016-04-19 13:12
295 查看
(1)git fetch remote branch
http://stackoverflow.com/questions/9537392/git-fetch-remote-branch/
... where
(2)There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
(3)remote branch
通过git clone获取的远端git库,只包含了远端git库的当前工作分支。如果想获取其它分支信息,需要使用”git branch –r” 来查看, 如果需要将远程的其它分支代码也获取过来,可以使用命令” git checkout -b 本地分支名 远程分支名”,其中,远程分支名为git branch –r所列出的分支名, 一般是诸如“origin/分支名”的样子。如果本地分支名已经存在, 则不需要“-b”参数。
(4) reset/revert
http://yijiebuyi.com/blog/8f985d539566d0bf3b804df6be4e0c90.html
(5)git - push current vs. push upstream (tracking)
ref
problem:
http://stackoverflow.com/questions/13751319/git-push-current-vs-push-upstream-tracking/13751847#13751847
solution:
http://blog.csdn.net/exlsunshine/article/details/18988531
http://stackoverflow.com/questions/9537392/git-fetch-remote-branch/
git fetch <remote> <rbranch>:<lbranch> git checkout <lbranch>
... where
<rbranch>is the remote branch or source ref and
<lbranch>is the as yet non-existent local branch or destination ref you want to track and which you probably want to name the same as the remote branch or source ref. This is explained under options in the explanation of
<refspec>.
(2)There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
(3)remote branch
通过git clone获取的远端git库,只包含了远端git库的当前工作分支。如果想获取其它分支信息,需要使用”git branch –r” 来查看, 如果需要将远程的其它分支代码也获取过来,可以使用命令” git checkout -b 本地分支名 远程分支名”,其中,远程分支名为git branch –r所列出的分支名, 一般是诸如“origin/分支名”的样子。如果本地分支名已经存在, 则不需要“-b”参数。
(4) reset/revert
http://yijiebuyi.com/blog/8f985d539566d0bf3b804df6be4e0c90.html
(5)git - push current vs. push upstream (tracking)
ref
problem:
http://stackoverflow.com/questions/13751319/git-push-current-vs-push-upstream-tracking/13751847#13751847
solution:
http://blog.csdn.net/exlsunshine/article/details/18988531
相关文章推荐
- POJ-1192 最优连通子集(树形DP入门+模板)
- 文件压缩与解压缩(哈夫曼编码压缩方式)
- [RFC1867] HTML中基于表单的文件上传
- Android自定义Notification并没有那么简单
- iOS Json解析框架之MJExtension使用详解
- 【教程】基于FlashBuilder创建的FLEX项目使用教程精简版
- hdu 1863 畅通工程 最小生成树
- CSS3实现32种基本图形
- myeclipse创建项目工作组
- 【DFS】HDU3111Sudoku
- FOJ有奖月赛-2016年4月(F)
- Windows 7系统盘合成
- HDU 5667 Sequence (BestCoder Round #80 1003)——构造矩阵
- Red and Black——深搜
- 大白痴学习webmagic
- strcat() 和 strchr()
- maven snapshot和release版本的区别
- 大白痴学习webmagic
- 重载内核的一份代码的学习
- 《你好哇,程序员》新鲜出炉