git-refresh

Posted on August 4, 2017. Filed under: Uncategorized | Tags: , , , , |

git-refresh

From comments in the above:

# Regardless of the branch you are on, this code:
# - stashes changes (if any)
# - checks out master (if not on master)
# - Do a fast-forward merge
# - checks out your branch (if it's not master)
# - rebases onto master (if branch is not master)
# - pops changes from stash, if any

Liked it here?
Why not try sites on the blogroll...