随笔分类 -  git

use git
摘要:1. 更新git版本:http://codelife.me/blog/2013/06/25/upgrade-git-on-centos-6-4/2. 建立git仓库:git init --bare myrepo.git # 建立代码仓库chgrp -R git/opt/myrepo.git #... 阅读全文
posted @ 2014-06-19 17:07 kv9 阅读(276) 评论(0) 推荐(0)
摘要:1. 建立自己的git仓库,需要是空git仓库2. checkout 你的 git仓库3.svn忽略.git文件,忽略.git .gitignore4. 把 .git文件拷到你的 svn仓库5. git 上传文件————可以用,但是不符合我的情况————1. 所有需要用到的:git svn 帮助文... 阅读全文
posted @ 2014-06-19 00:13 kv9 阅读(179) 评论(0) 推荐(0)
摘要:————————Vim————————1. gf可以转到文件中指明路径的文件。这样可以实现文件的快速切换。ctrl+o:A -> B, 返回Actrl+6:A、B之间快速切换2. q$ vim anyfile:help q3. 夜间模式:colorscheme evening4. 匹配 top:456px;,然后替换成空行:131,453s/top:[1-9]*px;//————————git————————1. git commit -mgit commit给暂存区域生成快照并提交。-m “本次提交的原因的注释。”2. git pull origin -Fetch from and m 阅读全文
posted @ 2014-04-02 10:00 kv9 阅读(348) 评论(0) 推荐(0)