Created
September 29, 2016 01:54
-
-
Save tiancheng91/8c2b1414de5ebd0cf924aee1944fc42e to your computer and use it in GitHub Desktop.
git cheat sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git svn | |
git svn clone -s repo (git svn init -T trunk -b branches -t tags repo) | |
git svn clone -T trunk repo | |
git svn clone -r 100:HEAD repo | |
git svn fetch | |
git svn rebase | |
git svn dcommit | |
branches = <svn-path>:<git-refspec> | |
branches = branches/*:refs/remotes/* | |
# 文件多的仓库优化 | |
git config --global core.preloadindex true | |
git config --global core.fscache true | |
git config --global gc.auto 256 | |
git gc --aggressive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment