-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command to remove git-bug data from git repository #676
Comments
The Makefile does contain two targets (clean local bugs and clean local identities) which seem to remove the "not so obvious" directories. Though, they don't cleanup the |
Today I was searching for this after the migration, since not everything worked as intended. I'd greatly appreciate having such a command that lets me completely remove git-bug from a repository and then I can safely try again. |
Arguably, that could be a dedicated CLI subcommand. |
I see that the make targets are using I can give this a shot if I know how that should be handled. |
@zinderic sure, it seems like there is a consensus that it makes sense. From what I've seen, it's also a very common question/need, especially for newcomers. I'm not so sure about the naming though, Now for the design:
Let me know if that make sense. |
I guess I'd be looking for a command named Uninstall might be misinterpreted as "globally uninstall git bug" though, so it might not be ideal. |
|
I opened PR #933 for this. I don't have a strong opinion what should be the name of the sub-command, for me personally |
I like @GlancingMind's suggestion ... let's do ... |
OK, |
git-annex uses |
@zinderic : Are you still working on this? If not, I'll pick it up for you, but I don't want to step on your toes if you're just delayed and busy. |
#933 has been merged, we can close this. |
At one point I was using an old version of git-bug on a repository that I stopped updating for a while. Today I wanted to use it again, and git-bug complained about the incompatible metadata format.
However I didn't want to upgrade the existing data, I just wanted to re-create the metadata from scratch.
I actually had an hard time finding out all the places/refs that one needed to remove before git-bug was happy to initialize a new repository.
I don't think a "remove from repository" command is necessary, but it would be nice to have an overview and/or list of commands that can be used to remove all refs, dirs and config entries used by git-bug from an existing repository.
To account for all past versions, so far these seem to be the following refs:
refs/bugs/ refs/identities/ refs/remotes/*/bugs/
, the "git-bug[.*]" entries from.git/config
, the.git/git-bug directory
.. (did I miss anything?)The text was updated successfully, but these errors were encountered: