π Edit page
β Add page
push
Docs: Git push
Push branch
git push
git push origin master
Push all branches
Push all branches. Itβs a good idea to deleted merged branches first to avoid recreating them on the repo.
git push --all
Push tags only
NB. Does not push the branch itself.
git push --tags
Push new branch
When git push
gives you an error that that the branch does not exist on the remote, use one of these.
git push origin HEAD
Use the -u
flag for --set-upstream
. This is not needed on future pushes.
git push -u origin my-feature