Flags available for the git push command.
git push
These flags modify the behavior of pushing commits to a remote repository.
--force
--force-with-lease
--tags
--follow-tags
--set-upstream
--dry-run
--delete
--all
Git.push
Flags available for the
git push
command.These flags modify the behavior of pushing commits to a remote repository.
--force
: Forces the push, overwriting remote history.--force-with-lease
: Forces push only if remote hasn’t been updated.--tags
: Push all tags to the remote.--follow-tags
: Push annotated tags associated with commits.--set-upstream
: Sets upstream (tracking) for the branch.--dry-run
: Simulates push without making changes.--delete
: Deletes the specified branch from the remote.--all
: Pushes all branches.