1. git branch -l 查看本地branch
2. git reset --hard 回滚所有改动
3. git status 查看本地改动
4. git pull 更新代码
5. git commit -a 提交代码
6. git push 提交到服务器
7. git fetch origin xxxxxx 把服务器拉下某个branch
8. git checko...
分类:
其他好文 时间:
2014-10-13 23:41:17
阅读次数:
189
查看分支:git branch
创建分支:git branch name
切换分支:git checkout name
创建+切换分支:git checkout -b name
合并指定分支到当前分支:git merge name
删除分支:git branch -d name...
分类:
其他好文 时间:
2014-10-12 00:01:17
阅读次数:
398
在本篇文章中, 我将会详细说明我是如何应用SVN trunk(树干)、branches(分支)和tags(标记)。这种方法同样被称为“branch always”,两者非常接近。可能我所介绍的并不是最好的方法,但是它会给新手一些解释说明,告诉他们trunk、branches和tags是什么,并且该如...
分类:
其他好文 时间:
2014-10-09 18:00:27
阅读次数:
153
git 覆盖本地修改 ,git 放弃本地修改,强制更新git fetch --allgit reset --hard origin/mastergit fetch 只是下载远程的库的内容,不做任何的合并 git reset 把HEAD指向刚刚下载的最新的版本git branch查看分支git bra...
分类:
其他好文 时间:
2014-10-08 14:10:45
阅读次数:
209
机器硬件环境:CPU:Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz 4核Mem: 32GSSD:INTEL SSDSC2BP480G4SATA HDD: 2*500G LVMsysbench 0.5的安装:#bzr branch lp:~sysbench-dev...
分类:
数据库 时间:
2014-10-06 18:46:00
阅读次数:
471
在eclipse cdt中import github的远程项目,操作是import ->Git/projects from git ->Clone URI导入的项目可以switch branch, 但就是不能打开函数的声明,实际上eclipse的一切快捷键都不能用了我看了下导入项目的preferen...
分类:
系统相关 时间:
2014-10-05 01:03:37
阅读次数:
315
Problem Description
The light travels in a straight line and always goes in the minimal path between two points, are the basic laws of optics.
Now, our problem is that, if a branch of light goes...
分类:
其他好文 时间:
2014-10-03 04:12:15
阅读次数:
162
差不多是从七月开始有空就写一写,写到现在也算是可以拿出来展示了,vajoyJS是一款可以提供多项建站常用UI功能的插件库,让你轻松创建简易幻灯片、模态窗口和单屏滚页等效果。vajoyJS依赖于 jQuery 和 base.css,可以在Github(欢迎各种star或branch)下载最新版本,内有...
分类:
Web程序 时间:
2014-10-01 20:16:01
阅读次数:
420
git branch用法总结2011-10-30 19:3712724人阅读评论(1)收藏举报branchgitgit branchgit branch不带参数:列出本地已经存在的分支,并且在当前分支的前面加“*”号标记,例如: #git branch* masternewbranchgit bra...
分类:
其他好文 时间:
2014-09-29 12:39:10
阅读次数:
147
SVN的merge操作是为了保证主干(trunk)和分支(branch)同步,merge方式有:1、Merge a range of revisions(合并一个范围的版本)2、Reintegrate a branch(复兴合并)3、Merge two different trees(合并两个不同的...
分类:
其他好文 时间:
2014-09-27 14:49:09
阅读次数:
183