Skip to content

Instantly share code, notes, and snippets.

View waqashamid's full-sized avatar
🎯
Focusing

Waqas Hamid waqashamid

🎯
Focusing
View GitHub Profile
@waqashamid
waqashamid / merge
Created May 17, 2018 06:50 — forked from tmiller/merge
Bash script to merge master into all branches
#!/bin/bash
# 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.