diff options
Diffstat (limited to '.bin/fetchgit')
-rwxr-xr-x | .bin/fetchgit | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.bin/fetchgit b/.bin/fetchgit new file mode 100755 index 0000000..d94beb3 --- /dev/null +++ b/.bin/fetchgit @@ -0,0 +1,11 @@ +#!/usr/bin/env zsh + +git fetch --all --prune; + +if git config remote.upstream.url > /dev/null; then + git pull --ff-only upstream master; + git push origin; +else + git pull --ff-only origin master; +fi + |