Git : Gpsa now pushes to all remotes.
This commit is contained in:
parent
7a4632102e
commit
09eb0a8be5
|
@ -5,7 +5,11 @@ function gps() {
|
|||
|
||||
# Git push all (branches). Useful for pushing all stuff to a new remote.
|
||||
function gpsa() {
|
||||
git push "${1}" --tags "refs/remotes/origin/*:refs/heads/*"
|
||||
local remotes=($(git remote))
|
||||
for remote in ${remotes[@]}; do
|
||||
echo -n "${remote}: "
|
||||
git push "${remote}" --tags "refs/remotes/origin/*:refs/heads/*"
|
||||
done
|
||||
}
|
||||
|
||||
# Git force push.
|
||||
|
|
Reference in a new issue