Skip to content

Instantly share code, notes, and snippets.

@MichaelBlume
Created April 11, 2011 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelBlume/914015 to your computer and use it in GitHub Desktop.
Save MichaelBlume/914015 to your computer and use it in GitHub Desktop.
Some git-svn workflow stuff from my .bash_aliases, before our office switched to git and I switched to .gitconfig
alias g="git"
alias com="g commit"
alias add="g add"
alias dif="g diff"
alias res="g reset"
alias co="g checkout"
alias branch="g branch"
alias merge="g merge"
alias st="g status"
alias sreb="g svn rebase"
alias push="g svn dcommit"
alias fetch="g svn fetch"
alias resh="res --hard"
alias reb="g rebase remotes/trunk"
alias pull="fetch; merge remotes/trunk"
alias col="co collection"
alias master="co master; sreb"
alias prepush="branch -D master; co -b master; g rebase -i --onto remotes/trunk mergebase"
alias rebc="g rebase --continue"
alias rebs="g rebase --skip"
alias reba="g rebase --abort"
alias mb="branch -D mergebase; branch mergebase"
alias recol="branch -D mergebase oldc; co -b mergebase remotes/trunk; branch --no-merged | grep -v collection | grep -v nm- | xargs git merge; col; branch oldc; g rebase mergebase; dif oldc;"
alias rebcol="g rebase -i mergebase"
@MichaelBlume
Copy link
Author

recol allowed me to keep a bunch of branches with unpushed commits I wanted to work on top of. I'd start branches with nm- if I didn't want them going in the collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment