使用merge可以合并多个历史记录的流程。 如下图所示,bugfix分支是从master分支分叉出来的。 合并 bugfix分支到master分支时,如果master分支的状态没有被更改过,那么这个合并是非常简单的。 bugfix分支的历史记录包含master分支所有的历史记录,所以只要把bugfi ...
分类:
其他好文 时间:
2016-04-17 20:46:16
阅读次数:
148
1、查看远程服务器分支 git branch -a 2、查看本地分支 git branch 3、切换分支 git checkout master 如图: ...
分类:
其他好文 时间:
2016-04-15 10:33:43
阅读次数:
190
1.git push 报错 [remote rejected] master -> master (branch is currently checkedout) error: failed to push some refs .. ...
分类:
其他好文 时间:
2016-04-11 11:37:22
阅读次数:
144
usage: repo COMMAND [ARGS]The most commonly used repo commands are: abandon Permanently abandon a development branch branch View current topic branche ...
分类:
其他好文 时间:
2016-04-09 20:15:31
阅读次数:
291
远程仓库 添加远程仓库 查看远程仓库 推送分支 抓取分支 $ git branch --set-upstream branch-name origin/branch-name,可以建立起本地分支和远程分支的关联,之后可以直接git pull从远程抓取分支。 另外,git pull = git fet ...
分类:
其他好文 时间:
2016-04-09 19:01:02
阅读次数:
167
参考:http://www.bootcss.com/p/git-guide/ 首先:运行git shell → cd 到指定的github 克隆的本地版本。 分支的名称以"branch_2015" 为例 切换分支以及提交代码到本地 Start 切换到主干 git checkout master 切换 ...
分类:
其他好文 时间:
2016-04-08 14:29:10
阅读次数:
144
查看Git分支: git checkout -b xxx origin/xxx 把远程的xxx分支拉到本地,取名xxx git branch -vv 查看本地分支详细信息 git branch -rv 查看远端分支详细信息 git fetch origin xxx 拉取远程分支xxx的代码到本地,但 ...
分类:
其他好文 时间:
2016-04-05 19:17:33
阅读次数:
109
git push git push如果直接使用,不加repository和refspec,那么首先根据当前branch的branch name,在配置文件中找到branch.branchName.remote(没有就是origin),然后push 所有的local-tracking branch(即 ...
分类:
其他好文 时间:
2016-04-04 17:57:06
阅读次数:
186
git中的cherry-pick,revert和rebase都使用的是3-way合并策略,下面就来看看这3个方法使用的merge-base,ours和theirs分别是什么。 cherry-pick 假如有如下的提交历史,使用命令git cherry-pick alt(当前branch是master ...
分类:
其他好文 时间:
2016-04-04 11:41:48
阅读次数:
503
Prime Distance Description The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the inter ...
分类:
其他好文 时间:
2016-04-03 20:15:02
阅读次数:
149