Version Control Integrations > Git Integration > Command-Line Client

Top |Previous |Next

ccollab-gitaddbranch

Description

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

Option

Required?

Description

<review>

Yes

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).

<branch>

No

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

<upstream>

No

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).

Examples:

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

ccollab gitaddbranch new foo_feature origin/main


© 2003-2025 SmartBear Software. All rights reserved.