Linking a commit and a change request in a nondefault, registered Rational Team Concert project area

Specify a Rational Team Concert™ change request and project name your Git commit message. The project must be registered for use with the adapter.

About this task

Complete your Git work as you normally would.

When writing the commit message, you must include the request tag bug followed by the number of the Rational Team Concert change request to which you are linking. You must also specify the full Rational Team Concert project name or the project abbreviation assigned when the project was registered. Any errors are printed in the results of the Git push.

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 bug is the request tag. Note there is no space between the request tag and project name specification.

Example

In the following commit message, bug(JKE) 12 on line 4 says that the commit is associated with defect 14 in the Rational Team Concert JKE project. The link is created when the commit is pushed to the registered repository.

1 Fixed the instructions in the shared readme file 
2 
3 Updated the instructions in the shared readme file 
4 fix bug(JKE) 12 

Feedback