SVN switch 用法详解 (ZZ) http://www.cnblogs.com/dabaopku/archive/2011/05/21/2052820.html确实,以前不会用switch之前,就像文中提到的那样,先把trunk merge进branch,提交branch,再把branch ...
分类:
其他好文 时间:
2015-07-20 15:50:31
阅读次数:
114
解决冲突人生不如意之事十之八九,合并分支往往也不是一帆风顺的。准备新的feature1分支,继续我们的新分支开发:$ git checkout -b feature1Switched to a new branch 'feature1'修改readme.txt最后一行,改为:Creating a n...
分类:
其他好文 时间:
2015-07-19 17:43:36
阅读次数:
100
创建标签在Git中打标签非常简单,首先,切换到需要打标签的分支上:$ git branch* dev master$ git checkout masterSwitched to branch 'master'然后,敲命令git tag 就可以打一个新标签:$ git tag v1.0可以用命令g....
分类:
其他好文 时间:
2015-07-19 17:41:35
阅读次数:
130
一 跟踪分支与跟踪远程分支当进行Git远程操作的时候,有两个概念需要掌握: 跟踪分支 -- tracking branch 跟踪远程分支 -- remote tracking branch那么在Git本地操作中,分支只是指向某个commit对象的引用,那么跟踪分支和远程跟踪分支在本地仓库中具...
分类:
其他好文 时间:
2015-07-19 16:11:50
阅读次数:
153
liunx备份还原系统,推荐使用clonezilla(再生龙),clonezilla是一款由台湾同胞开发的开源软件。1.使用软件为clonezilla(再生龙),可至官网进行下载http://clonezilla.nchc.org.tw/clonezilla-live/download/download.php?branch=stable2.刻录启动U盘的时候,请使用使用Win32Dis..
分类:
其他好文 时间:
2015-07-15 23:05:52
阅读次数:
595
git filter-branch 允许你使用一个单一命令来大范围地更改历史。所以这个命令要慎用。
1假如你想对所有的commits删除一个文件。
git filter-branch --tree-filter 'rm to_be_deleted_file' HEAD
2 假如你想删除某些message中的某些以cr开头的行。
git filter-branch --m...
分类:
其他好文 时间:
2015-07-15 17:03:37
阅读次数:
100
1. 删除分支远程: git push origin :branchName本地:git branch -d branchName2. 某个文件使用远程覆盖本地(放弃修改)git checkout origin fileName3. 代码回滚后,merge丢失代码,需要恢复git revert d8...
分类:
其他好文 时间:
2015-07-13 11:39:13
阅读次数:
81
Use the Right Algorithm and Data StructureJan Christiaan “JC” van WinkelA big bank with many branch offices complained that the new computers it had bought for the tellers were too slow. This was in th...
分类:
其他好文 时间:
2015-07-13 10:25:10
阅读次数:
129
git branch xxx 新建分支xxxgit branch -a 查看所有分支(包括远程)git branch --set-upstream-to remotes/origin/xxx 将当前分支对应到远程分支xxxgit checkout -b xxx remotes/origin/xxx ...
分类:
其他好文 时间:
2015-07-12 17:16:05
阅读次数:
118
Git命令及Linux命令一 Git命令1.提交需要执行3个命令 git add . git commit -m "提交信息" git push origin 分支名 2.远程更新 git pull origin develop-zzl 3.常用Git命令 查看本地分支: git branch 查....
分类:
其他好文 时间:
2015-07-11 16:41:08
阅读次数:
128