ccollab gitaddbranch

Applies to Collaborator 14.5, last modified on May 06, 2024


The ccollab gitaddbranch command uploads all differences between the given branch and the remote branch being tracked for changes.

Command Line Syntax

ccollab [global-options] gitaddbranch <review> [<branch>] [<upstream>]

Command Options






Identifier of the desired review (an integer number), or a new, ask, or last keyword. Where keywords define the following behaviour:

  • new - the command will create a new review,
  • ask - the command will pause execution and prompt for the identifier of the desired review,
  • last - the command will use the last review that was created on the current machine via Command-Line Client (that is, it does not know about reviews created elsewhere).



Name of a branch whose changes should be added. Default is the current checkout branch.



Name of the remote-tracking branch to be compared against. If omitted, Collaborator will try the default upstream branch (which was set via the git branch --set-upstream-to command-line key).


To upload all differences between the "foo_feature" branch and the "origin/main" repository:

ccollab gitaddbranch new foo_feature origin/main

See Also

Git Integration
ccollab addchangelist (for Git)
ccollab addchanges (for Git)
ccollab addgitdiffs

Highlight search results