本地仓库的所有分支可以跟踪远程仓库的远程分支, 这样在当前本地分支上做pull, push时候,可以省略本地分支和远程分支名。远程仓库名一般为remote(如果你clone远程仓库时默认设置)或者orgin. 可以使用git remote add URL 来指定。1. 设置 branch trac....
分类:
其他好文 时间:
2015-07-11 13:29:37
阅读次数:
120
1. solve conflictsenario: Adam checked out master branch, then Bob checked out master branch, then Adam modify a file, commit and push, then Bob m...
分类:
其他好文 时间:
2015-07-04 15:17:39
阅读次数:
100
1:查看本地分支。带*号的是当前所在的分支。 git?branch 2:查看所有分支(包含本地和远程的分支)带*号的是当前所在的分支。 git?branch?-a 3:修改分支名称(重命名)使用时候不要加“<>” git?branch?-...
分类:
其他好文 时间:
2015-07-03 12:35:26
阅读次数:
86
------------------------------------------------------------1.查看分支 git branch git branch -a 查看所有分支 git branch 基于当前分支创建新的分支 git...
分类:
其他好文 时间:
2015-07-02 14:05:27
阅读次数:
438
我们在终端操作git的时候,是可以实时的get到当前所在的分支的操作文件:~/.bash_profile加入以下代码:## Parses out the branch name from .git/HEAD:find_git_branch () { local dir=. head until .....
分类:
其他好文 时间:
2015-07-01 13:52:09
阅读次数:
113
网上的SVN分支的教程真的不好用,我这里自己写的,绝对靠谱:SVN的分支跟GIT的分支不一样,SVN的分支,包括文件夹的分支或者是文件的分支,都是重复复制文件的,步骤如下:1.branch/tag ,在to/path里面写入要复制的文件夹或者是文件2.switch,切换分支,修改代码再提交,记住.....
分类:
其他好文 时间:
2015-06-30 12:25:39
阅读次数:
95
进入项目目录后,执行 git pull 命令,没有将项目更新,并提示下图:提示:there is no tracking information for the current branch.意思是说本地分支master和远程分支master,并未关联。之前文章中曾经说过,在本地仓库和远程仓库连接后...
分类:
其他好文 时间:
2015-06-30 07:47:37
阅读次数:
187
DSP学习bootloader彭会锋1 关于_c_int00问题从代码注释可以看到 :_c_int00 is branch to start of boot.asm in RTS libray //翻译为中文就是:_c_int00是rts2800_ml.lib的入口地址; _c_int00是C初始....
分类:
其他好文 时间:
2015-06-30 00:01:54
阅读次数:
361