1 差集
有时候使用Git的时候我们想对比两个branch有哪些不同,比如发code review的时候,如果能有一个命令可以给我们展示两个branch的不同,即差集,那将会很方便。
Git有double dot语法可以做这个事情:
git log master..hongchangfirst_branch
它会将所有在hongchangfirst_branch分支里而不在...
分类:
其他好文 时间:
2015-05-15 17:47:21
阅读次数:
109
[Ref:http://en.wikipedia.org/wiki/Deep_learning]Definition:a branch of machine learning based on a set of algorithms that attempt to model high-level ...
分类:
其他好文 时间:
2015-05-13 21:31:14
阅读次数:
134
我的理解:在svn版本库中创建两个目录,一个主干如truck,一个分支目录如branch(注:分支可以创建多个),分别在客户端中检出代码,在分支中进行bug的修复以及新模块的开发,开发完后再merge合并到主干truck中去。参考链接:http://www.360doc.com/content/12...
分类:
其他好文 时间:
2015-05-10 18:45:18
阅读次数:
94
svn branch mergesvn分支与主干[转载地址:http://blog.csdn.net/zhouyong0/article/details/7968667,原文地址不清楚]下面我将step by step地演示如何一次完整的branching和merging,包括创建分支、分支开发、分...
分类:
其他好文 时间:
2015-05-08 17:53:40
阅读次数:
115
当我刚刚开始使用Git的版本控制时,我根本不确定我付出那么多时间是不是会得到回报。Branch、Stage、Stash,这些Git名词对我来说都非常陌生。而今天的我已不能想象生活没有Git会变成什么样。Git不仅提供了我非常需要的版本控制功能,还让我变成一个更优秀的程序员。这里有一系列可以帮助你的小...
分类:
其他好文 时间:
2015-05-08 12:24:16
阅读次数:
150
人生不如意之事十之八九,合并分支往往也不是一帆风顺的。准备新的feature1分支,继续我们的新分支开发:$ git checkout -b feature1Switched to a new branch 'feature1'修改readme.txt最后一行,改为:Creating a new b...
分类:
其他好文 时间:
2015-05-06 16:48:02
阅读次数:
111
git clone
git fetch
git merge
git pull
git push
git add
git commit
git rebase
git branch
git checkout...
分类:
其他好文 时间:
2015-05-04 22:08:22
阅读次数:
126
有时候开发了很多的特性,开了很多的分支,时间长了分支就多了,想要把不用的分支删除,怎么办呢?
#查看本地都有哪些分支
git branch
#查看所有的分支,包括远程的
git branch -a
#删除本地的某个分支
git branch -D hongchangfirst
#删除远程的分支
git branch -r -d origin/hongchan...
分类:
其他好文 时间:
2015-05-04 20:17:30
阅读次数:
136
zhc@hongchangfirst$ git checkout -b hongchangfirst origin/hongchangfirst
出现:
fatal: Cannot update paths and switch to branch 'hongchangfirst' at the same time.
Did you intend to checkout 'hongcha...
分类:
其他好文 时间:
2015-05-04 20:17:08
阅读次数:
137
找binary tree中两个node第一个公共祖先。注意不一定是BST想法:p,q都在左子树,就branch left。如果都在right,就branch right。如果不在same side,就返回first common ancestor所以主要是在left subtree和right su...
分类:
其他好文 时间:
2015-05-04 13:31:09
阅读次数:
155