Skip to content

Instantly share code, notes, and snippets.

View Jorundur's full-sized avatar

Jörundur Jörundsson Jorundur

View GitHub Profile
@tmiller
tmiller / merge
Last active November 14, 2021 11:16
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.