Skip to content
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

Implement uninstall action #9

Open
wevtimoteo opened this issue Mar 7, 2020 · 0 comments
Open

Implement uninstall action #9

wevtimoteo opened this issue Mar 7, 2020 · 0 comments
Labels
Milestone

Comments

@wevtimoteo
Copy link
Member

wevtimoteo commented Mar 7, 2020

As we register pre-commit hook in .git/hooks, there is a possibility that user doesn't want to use git-pair anymore, so we should add ability to remove created hook by running:

git pair uninstall

It will actually:

  • Remove all pair.coauthor entries from .git/config (we can use our git pair stop implementation)
  • rm .git/hooks/pre-commit[-append-coauthors]

I was wondering if we should call it unregister-hooks instead of uninstall. WDYT?

This isn't mapped in README, so remember to update it.

@lcidral lcidral added this to the v1.1.0 milestone Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants