Skip to content

Instantly share code, notes, and snippets.

View waqashamid's full-sized avatar

Waqas Hamid waqashamid

View GitHub Profile
waqashamid / merge
Created May 17, 2018 06:50 — forked from tmiller/merge
Bash script to merge master into all branches
View merge
# Merges the master branch into all other branches
# Process:
# - Save the name of the current branch
# - If the current branch is not master then checkout master.
# - Pull the latest changes for master from its upstream branch.
# - Loop over each local branch.