man cg-fetch (Commandes) - fetch changes from a remote branch to the local git repository
NAME
cg-fetch - fetch changes from a remote branch to the local git repository
SYNOPSIS
cg-fetch [-f] [-v] [BRANCH_NAME]
DESCRIPTION
Takes the branch name as an argument, defaulting to origin.
This will fetch the latest changes from a remote repository to the corresponding branch in your local repository. Note that this operation does not involve merging those changes to your own branch - that is being done by the cg-merge(1) command. cg-update exists to conveniently bundle the act of fetching and merging to your working branch together.
Before the first fetch, you have to tell Cogito about the remote branch. This should be done by the cg-branch-add(1) command. See its documentation for the list of supported fetching protocols and other details. Note that one exception to this is the origin branch, which was set to the location of the source repository if you created yours using the cg-clone(1) command.
Note that the operation now being performed by cg-fetch(1) (fetching) was called pulling in the past. However, GIT recently changed this terminology, and after sufficient transition period, the pulling expression will be instead used for the operation now performed by the cg-update(1) command. Please do not let this confuse you.
OPTIONS
- -f
- Force the complete fetch even if the heads are the same.
- -v
- Display more verbose output.
- -h, --help
- Print usage help.
ENVIRONMENT
- RSYNC
- The command to invoke when we want to call the rsync tool (only used when fetching over the rsync protocol). Defaults to rsync.
- RSYNC_FLAGS
- Additional flags to be passed to the rsync tool when fetching over the rsync protocol.
COPYRIGHT
Copyright © Petr Baudis, 2005.