How to delete / remove branch from shared repository?
How should I clean out (remove / delete / etc?) a branch from a shared repository?
I had a local repository that become corrupted in some way and I could no longer commit changes. There was a remote repository that still worked fine but if I delete my local branch (the folder in the file system) and try to pull a new local copy, I'd get 'file already exists' error somewhere inside the repository (strange named files obviously inside the .bzr black box).
In the end, I backed up my local working tree, deleted my entire local repository and pulled a new set of branches from the remote location. I'd still like to know if there was a recommended way to delete or remove branches from a shared repository to prevent any conflict occurring.
My file structure was a bit like this:
remote drive
\proj1 (shared repo, no tree)
\branch1 (plain branch)
\branch2 (plain branch)
local drive
\proj1 (shared repo)
\branch1 (plain branch)
\branch2 (plain branch, bound)
In my case, local proj1\branch2 became corrupted and I could not replace it with remote proj1\branch2
This question may be similar to question #38732 or question #32288 but I'd like clarification. I normally work with Bazaar Explorer and don't use the commands.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Gordon Tyler
- Solved:
- Last query:
- Last reply: