To allow git-svn users to do the equivalent of a svn up in one command, instead of saving local changes to the stash before rebasing (then dropping the stash)

Warning keep in mind that this will discard the current index

In your ~/.gitconfig file:

[alias]
    svnup = !DIRTY=$(git status --porcelain -uno) && \
        git stash save svn-up-auto && git svn rebase && \
        test -n \"$DIRTY\" && git stash pop

    svncommit = !DIRTY=$(git status --porcelain -uno) && \
        git stash save svn-up-auto && git svn dcommit && \
        test -n \"$DIRTY\" && git stash pop