The gitcentric config_repo command enables you to configure Git repositories for use with GitCentric.
gitcentric config-repo [--server <server>:<port>] [--noNotify] [--clear] [--useAccuworkKey | --useThirdPartyKey] [--cpkPattern <regex>] [--user <user>] [--pw <password>][--help] [--children-of <reponame>] [<reponame>...] [--]
Specify one or more repositories to configure with <reponame>....
You can use the --useAccuworkKey or --useThirdPartyKey options to configure a repo for an AccuRev Server that uses either AccuWork or a third-party issue tracking system. For more information, see Enable and Use Change Packages.
If your site does use change packages, the --cpkPattern option can be used to specify a regular expression setting that determines what your users need to put in their Git commit comments so that AccuRev knows what issue the change applies to. A discussion of Java regular expressions is beyond the scope of this document, but here is an example:
Resolved\s+([\d,]+)
This format would be adequate for simple environments where the comment
always starts with Resolved, followed by white space, followed by any number of issues, separated by commas:Resolved 12576 Resolved 34, 149, 11057, 686
--cpkPattern "Resolved'\'s+['\'d,]+)"
Use a search engine and search for “Java regular expressions” for more information about these formats.
Configure a repo named proj_3000 to be associated with the AccuRev server at myACServer:5050, which uses ASSIGN_PRIVILEGE_USER agc_sync with a password of sync001:
>ssh -p 29418 mylogin@myGCserver gitcentric config-repo proj_3000 -S myACServer:5050 -u agc_sync -p sync001
Change repos proj_3000 and proj_4000, as well as all of the immediate children of parent-only repo remote_parent to a new server (which uses the same ASSIGN_USER_PRIVILEGE user and password).
>ssh -p 29418 mylogin@myGCserver gitcentric config-repo proj_3000 proj_4000 --children-of remote_parent -S myACServer:5050 -u agc_sync -p sync001
Any member of the Project-Owners or Administrators groups.