cg-push(1) - Linux man page
Name
cg-push - push changes to a remote git repository
Synopsis
cg-push [-r LOCAL_BRANCH] [REMOTE_BRANCH] [-t TAG]...
Description
It will push your commits on the current branch (or as specified by the -r option) to the remote repository, provided that your commits follow the last commit in the remote repository.
Note that if the remote repository is associated with a working tree copy, this command won't update that. Use cg-reset at the remote side to bring it in sync (but throw away any local changes in that tree). Consider setting up a standalone repository (see gitlink:cg-admin-setuprepo[1]).
Takes the branch name as an argument, defaulting to "origin".
Options
-r BRANCH
- Pushes the given branch instead of the current one. Note that we lie a little here and you can actually specify a particular commit here, but you probably will not want to do that.
- -t TAG
- Tells cg-push to also push the given tag. Note that in the future, cg-push should push tags automatically. Also note that even if you pass gitlink:cg-push[1] the -t arguments, your HEAD is still pushed as well in addition to the tags.
- -h, --help
- Print usage summary.
- --long-help
- Print user manual. The same as found in gitlink:cg-push[1].
Copyright
Copyright © Petr Baudis, 2005.
See Also
cg-push is part of gitlink:cogito[7], a toolkit for managing gitlink:git[7] trees.