Git : Add gpsa that pushes everything.
This commit is contained in:
parent
45310c79f4
commit
633e794791
|
@ -3,6 +3,11 @@ function gps() {
|
||||||
git push "${@}"
|
git push "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Git push all (branches). Useful for pushing all stuff to a new remote.
|
||||||
|
function gpsa() {
|
||||||
|
git push "${1}" --tags "refs/remotes/origin/*:refs/heads/*"
|
||||||
|
}
|
||||||
|
|
||||||
# Git force push.
|
# Git force push.
|
||||||
function gpsf() {
|
function gpsf() {
|
||||||
git push --force "${@}"
|
git push --force "${@}"
|
||||||
|
|
|
@ -171,6 +171,7 @@ Command|Description
|
||||||
Command|Description
|
Command|Description
|
||||||
---|---
|
---|---
|
||||||
`gps`|Git push.
|
`gps`|Git push.
|
||||||
|
`gpsa`|Git push all (branches). Useful for pushing all stuff to a new remote.
|
||||||
`gpsf`|Git force push.
|
`gpsf`|Git force push.
|
||||||
`gpl`|Git pull.
|
`gpl`|Git pull.
|
||||||
`gl`|Git log.
|
`gl`|Git log.
|
||||||
|
|
Reference in a new issue