You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/sh
# Runs git svn fetch && git svn rebase, stashing the working tree changes if
# there are any.
#
# AUTHOR: Jacek Wielemborek, licensed under WTFPL.
GIT_MODIFIED=0
git diff-index --quiet --ignore-submodules HEAD -- || GIT_MODIFIED=1
if [ $GIT_MODIFIED -eq 1 ]; then
git stash
fi
git svn fetch
git svn rebase
if [ $GIT_MODIFIED -eq 1 ]; then
git stash pop
fi
I'm getting the impression that since this simplifies the process of pulling Git repositories, this is possibly something that git-up could make simpler. Perhaps adding support for git-svn fits into the concept of git-up?
The text was updated successfully, but these errors were encountered:
Here's my
~/bin/git-sfetch
:I'm getting the impression that since this simplifies the process of pulling Git repositories, this is possibly something that
git-up
could make simpler. Perhaps adding support forgit-svn
fits into the concept ofgit-up
?The text was updated successfully, but these errors were encountered: