Created
July 5, 2017 19:30
-
-
Save kirkins/14f1be3dd6c7e8a343cd06fb93d9a6fe to your computer and use it in GitHub Desktop.
R10K Helper - apply function to each branch
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
#!/usr/bin/env bash | |
for branch in $(git for-each-ref --format='%(refname)' refs/heads/); do | |
git checkout "$branch" | |
# run commands on branch here | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment