Skip to content

Instantly share code, notes, and snippets.

@tiancheng91
Created September 29, 2016 01:54
Show Gist options
  • Save tiancheng91/8c2b1414de5ebd0cf924aee1944fc42e to your computer and use it in GitHub Desktop.
Save tiancheng91/8c2b1414de5ebd0cf924aee1944fc42e to your computer and use it in GitHub Desktop.
git cheat sheet
# 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