2. How to... : Remove a Branch or a Repository
   
Remove a Branch or a Repository
These operations require manual procedures as described below.
Remove a Branch
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 on page 68).
2. Use the GitCentric config-branch CLI command (see config-branch on page 90) 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.
Remove a Repository
There is no "Delete Repository" feature in the GitCentric UI. You should not remove a repository from disk. Instead, set the description to "OBSOLETE" and set the ACLs so that only the Administrator group can see it.
If you are certain you want to remove a repository, consider using the gitcentric delete-repo. See delete-repo on page 94 in Appendix C Command-Line Reference for more information.