User Tools

Site Tools


Sidebar

Go Back

Contact
Recent Changes
Sitemap
snippets:git_push_all

Git push all branches / all refs to remote

git push --all origin
git push --mirror origin
–all
Push all branches (i.e. refs under refs/heads/); cannot be used with other <refspec>.
–mirror
Instead of naming each ref to push, specifies that all refs under refs/ (which includes but is
not limited to refs/heads/, refs/remotes/, and refs/tags/) be mirrored to the remote
repository. Newly created local refs will be pushed to the remote end, locally updated refs
will be force updated on the remote end, and deleted refs will be removed from the remote end.
This is the default if the configuration option remote.<remote>.mirror is set.
snippets/git_push_all.txt · Last modified: 2021/08/26 14:42 (external edit)