Skip to content

Instantly share code, notes, and snippets.

@mauricioprado00
Last active January 3, 2020 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauricioprado00/dc15a4142a6b216e0940da0086f8a244 to your computer and use it in GitHub Desktop.
Save mauricioprado00/dc15a4142a6b216e0940da0086f8a244 to your computer and use it in GitHub Desktop.
git-pushfull
#!/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