Linking a Gerrit change and a change request in a default Rational Team Concert project area

Specify a Rational Team Concert™ change request number in your Git commit message to create a link between it and your Gerrit change.

About this task

Complete your Git work as you normally would.

Include the request tag bug followed by the number of the Rational Team Concert change request to which you are linking in your commit message or on the command line. When you push the commit to a registered project on a registered Gerrit server, the link is created. Any errors are recorded in the Gerrit error log on the remote system.

Note: The default request tag is bug. Your system administrator can assign tag names when configuring the receive hook.
You can use any of the following forms, where bugbug is the request tag:

Example

In the following commit message the phrase bug 10 on line 4 says that the commit is associated with defect 10 in the default Rational Team Concert project. The link is created when the commit is pushed to the registered repository.
 1 Fixed the instructions in the readme file
 2
 3 Updated the instructions in the readme file
 4 fix bug 10
 5
 6 # Please enter the commit message for your changes. Lines starting
 7 # with '#' will be ignored, and an empty message aborts the commit. 
 8 # On branch master
 9 # Changes to be committed:
10 #         (use "git reset HEAD <file>..." to unstage) 
11 # 
12 # modified: readme.txt 13 # 
The following command creates a link to defect 113 in the default Rational Team Concert project.
> git commit -m 'Here is my fix for bug 113'

Feedback