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 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.
|
||||
function gpsf() {
|
||||
git push --force "${@}"
|
||||
|
|
|
@ -171,6 +171,7 @@ Command|Description
|
|||
Command|Description
|
||||
---|---
|
||||
`gps`|Git push.
|
||||
`gpsa`|Git push all (branches). Useful for pushing all stuff to a new remote.
|
||||
`gpsf`|Git force push.
|
||||
`gpl`|Git pull.
|
||||
`gl`|Git log.
|
||||
|
|
Reference in a new issue