-
-
Save filipekiss/3146491 to your computer and use it in GitHub Desktop.
Fetch all branches & tags from remote git repository.
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 `git branch -r | grep -v HEAD | grep -v master`; do | |
echo ${branch##*/} $branch | |
done | |
echo "Fetching..." | |
git fetch --all | |
echo "Pulling..." | |
git pull -v | |
echo "Results: Branches" | |
git branch -a | |
echo "Results: Tags" | |
git tag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nicely done! Thanks! :)