Created
May 21, 2018 10:38
-
-
Save alash3al/398eb6ce2ca74a2ebbd29a9a191b6e6d to your computer and use it in GitHub Desktop.
Merge Branch with Multiple branches at one command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for branch in "$@" | |
do | |
echo -e "Checking out $branch ...\n" | |
git checkout $branch | |
echo -e "Merging from $1 into $branch ...\n" | |
git merge $1 | |
echo -e "\n" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment