Last active
February 13, 2020 09:16
-
-
Save suzumura-ss/1268ea72a3b95c940b5e52151dac7e8e to your computer and use it in GitHub Desktop.
git fetch stage and master branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git-fetch () { | |
git checkout $1 | |
git pull --rebase | |
} | |
current=$(git rev-parse --abbrev-ref HEAD) | |
git fetch --prune | |
git-fetch stage | |
git-fetch master | |
git checkout $current |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment