This file contains 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
# add to .bash_profile | |
# uses current local branch name for remote target. | |
# e.g. if on branch 'dev' will fetch & merge upstream/dev into local 'dev' branch | |
alias branch="git symbolic-ref --short -q HEAD" | |
alias update_fork='git fetch upstream && git merge upstream/$(branch) $(branch) && $(push)' |