Skip to content

Instantly share code, notes, and snippets.

@CedricGatay
Created October 30, 2010 09:41
Show Gist options
  • Save CedricGatay/655145 to your computer and use it in GitHub Desktop.
Save CedricGatay/655145 to your computer and use it in GitHub Desktop.
git config with autosql alter
[color]
ui = auto
[alias]
amend = commit --amend
st = status
who = shortlog -sne
oneline = log --pretty=oneline --abbrev-commit --graph
changes = diff --name-status
dic = diff --cached
diffstat = diff --stat
svnpull = !echo ORIG_HEAD=`git rev-list ORIG_HEAD | head -1` && git svn rebase && echo `git diff $(git rev-list ORIG_HEAD | head -1) HEAD SQLdumps/itg/alter.sql | grep -v "^/\\*\\*" | grep "^+[^+]" | cut -b2- | sed -e "s/\\\\\\`//g" ` | mysql5 -v -f -uroot srm && echo ORIG_HEAD=`git rev-list ORIG_HEAD | head -1`
svnpush = svn dcommit
undo = git reset --soft HEAD^
addm = !git-ls-files -m -z | xargs -0 git-add && git status # ajouter les fichiers modifiés.
addu = !git-ls-files -o --exclude-standard -z | xargs -0 git-add && git status # ajouter les fichiers inconnus.
rmm = !git ls-files -d -z | xargs -0 git-rm && git status # supprimer les fichiers marqués
# comme effacés.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment