Git : Add gpsa that pushes everything.

This commit is contained in:
Dmitry Voronin 2024-01-11 00:32:09 +03:00
parent 45310c79f4
commit 633e794791
2 changed files with 7 additions and 1 deletions

View file

@ -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 "${@}"
@ -101,7 +106,7 @@ function ggc() {
# Usage: ga [FILES]
function ga() {
local target=${@}
if [[ "${target}" = "" ]]; then
target="."
fi

View file

@ -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.