GIT-PUSH(1) GIT-PUSH(1) (NAME) git-push - (SYNOPSIS) git push [--all | --branches | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=] [--repo=] [-f | --force] [-d | --delete] [--prune] [-q | --quiet] [-v | --verbose] [-u | --set-upstream] [-o | --push-option=] [--[no-]signed | --signed=(true|false|if-asked)] [--force-with-lease[=[:]] [--force-if-includes]] [--no-verify] [ [...]] (DESCRIPTION) . git push . git push origin main main main origin . (remote group) . remotes. : $ git config remotes.all-remotes "origin gitlab backup" git push all-remotes origin gitlab backup git push . (push mapping) . remotes. . ( git-config(1) ). (upstream) origin . Git : 1. () ( ) ( main git push origin main) --all --mirror --tags 2. remote..push 3. push.default. push.default=simple . push.default CONFIGURATION . push.default (upstream) git push . << (UPSTREAM BRANCHES)>> . (hooks) (push) . git-receive-pack(1) . (OPTIONS) <<>> (remote) (push) . (URL) ( GIT URLS ) ( REMOTES ) ( REMOTE GROUPS ). ... . (refspec) [+][:] main main:other HEAD^:refs/heads/main. << SHA-1>> ( gitrevisions(7)). . . + --force . ( refs/heads/main:refs/heads/main) ( main main:other). : o : remote..push . main main main:refs/heads/main . o . v1.0 HEAD:v1.0 HEAD:refs/tags/v1.0 . o refs/heads/ refs/tags/ . main main:other main:refs/heads/other . o : ( +: (non-fast-forward)) Git <<>> : . o * . glob . * . * . refs/heads/*:refs/heads/* . o ^ . . . . . . git push origin 'refs/heads/*' '^refs/heads/dev-*' dev- . o . git push origin :dev dev . o tag refs/tags/:refs/tags/ . git push git push origin tag v1.0 tag v1.0 . o advice.pushUnqualifiedRefname ( git-config(1)) refs/ . : PUSH RULES . --all, --branches ( refs/heads/) . --prune . tmp . (refspecs) git push --prune remote refs/heads/*:refs/tmp/* refs/tmp/foo refs/heads/foo . --mirror refs/ ( refs/heads/ refs/remotes/ refs/tags/ ) (mirror) . . remote..mirror . -n, --dry-run ( ). --porcelain . (tab) stderr stdout . . -d, --delete . (:) . --tags (refspecs) refs/tags . --follow-tags (annotated tags) refs/tags (commit-ish) . push.followTags . push.followTags git-config(1) . --signed, --no-signed, --signed=(true|false|if-asked) GPG (hooks) / . : false, --no-signed . true, --signed . if-asked . gpg --sign . git- receive-pack(1) . --atomic, --no-atomic (atomic transaction) . . . -o