Remove a Branch

Note: This section is for system administrators only.
There is no GitCentric Delete Branch feature. To remove a branch that has been mapped to an AccuRev stream, use this procedure:
  1. Ensure that the Force option is applied to the Push and Push Annotated Tag permissions for the repo (see Access).
  2. Use the GitCentric config-branch CLI command (see config-branch) to clear any GitCentric mappings:
    ssh -p 29418 <username>@<server> gitcentric config-branch
      --branch <branchname> <reponame> --clear

    Alternative: On the AccuRev Connector panel (Administration > Repositories > AccuRev Connector), select the mappings associated with the branch you intend to delete and click the Delete button.

  3. Use the standard Git command to delete the branch:
    git branch -d $branch
  4. Push the change.