timocratic (owner)

Revisions

gist: 205565 Download_button fork
public
Description:
Does a git pull, even with uncommitted changes
Public Clone URL: git://gist.github.com/205565.git
Embed All Files: show embed
gitup.sh #
1
2
3
4
5
6
7
8
9
10
11
12
gitup() {
  if git update-index --refresh; then
stashed=
  else
stashed=1
    git stash save 'update temp'
  fi
git pull --rebase;
  if [ -n "$stashed" ]; then
git stash pop
  fi
}