Last active
January 3, 2020 02:18
-
-
Save mauricioprado00/dc15a4142a6b216e0940da0086f8a244 to your computer and use it in GitHub Desktop.
git-pushfull
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 | |
if [[ -z "$1" || -z "$2" ]]; then | |
echo usage: | |
echo " git pushfull <remotename_orig> <remotename_dest>" | |
exit 1 | |
fi | |
git push "$2" refs/remotes/$1/*:refs/heads/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment