Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Waqas Hamid waqashamid

View GitHub Profile
@waqashamid
waqashamid / merge
Created May 17, 2018 — forked from tmiller/merge
Bash script to merge master into all branches
View merge
#!/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.
You can’t perform that action at this time.