![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
horace_lee
这个作者很懒,什么都没留下…
展开
-
set vim as git commit default editor
[code="java"]git config --global core.editor "vim"[/code][code="java"]echo "export EDITOR='vim'" >> ~/.profileexport EDITOR='vim'export VISUAL=vim[/code][code="ruby"]# ~/.bashr原创 2013-03-11 20:43:47 · 260 阅读 · 0 评论 -
change the author of a commit in git?
删除项目里的大文件[code="java"]git filter-branch --index-filter \ 'find -name ''*.mp3'' -or -name ''*.ogg'' | xargs -d''\n'' rm -f'#Suppose you want to remove a file (containing confidential ...原创 2013-03-19 20:34:05 · 82 阅读 · 0 评论 -
git revert merge commit
[code="ruby"]0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3df1acf5f54426d30f12c6b4558c3dd922297aae3e19b912404ffd3c153ccac3072dbf22396896d2a#要revert的commit是mergegit revert -m 2 0ce2ca0b35f59af267...原创 2013-05-07 08:10:14 · 176 阅读 · 0 评论 -
rvm create gemset
[code="ruby"]rvm ruby-1.9.3-p429 do rvm gemset create union[/code]原创 2013-07-01 09:00:28 · 305 阅读 · 0 评论 -
git如何合并 多个commit
需要先搞明白rebase然后,进这个界面[code="java"]pick b76d157 bpick a931ac7 c# Rebase df23917..a931ac7 onto df23917## Commands:# p, pick = use commit# r, reword = use commit, but edit the comm...原创 2013-07-02 20:42:06 · 458 阅读 · 0 评论 -
Removing untracked files from your git working copy
If you want to also remove directories, run [code="java"]git clean -f -d[/code].If you just want to remove ignored files, run [code="java"]git clean -f -X[/code].If you want to remove ignored ...原创 2013-02-12 06:10:16 · 103 阅读 · 0 评论 -
Package up all your .gem files in vendor/cache
[code="java"]gem 'my_private_gem', :path => "vendor/gems/my_private_gem-VERSION"[/code][code="java"]gem list | awk '{print $1}' | xargs gem unpack --target vendor/gems[/code]bundle ins...原创 2013-02-14 23:51:32 · 120 阅读 · 0 评论 -
git submodule
[code="ruby"]# get the submodule initiallygit submodule add ssh://bla submodule_dirgit submodule init#git submodule update# time passes, submodule upstream is updated# and you now want to ...原创 2013-02-14 23:54:44 · 62 阅读 · 0 评论