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

Throw error if checkout is going overwrite uncommited changes #18

Closed
knoebber opened this issue Mar 28, 2020 · 0 comments · Fixed by #24
Closed

Throw error if checkout is going overwrite uncommited changes #18

knoebber opened this issue Mar 28, 2020 · 0 comments · Fixed by #24

Comments

@knoebber
Copy link
Owner

It's convenient to revert a file back to its last commit and discard any new changes. Currently you can do this with dot checkout <filename>. This will discard any changes without telling user.

Instead it should throw an error like: "<filename>" has uncommitted changes, use -f to override.

Also implement -f option for checkout.

knoebber added a commit that referenced this issue Nov 14, 2020
Throw error if checkout is going overwrite uncommitted changes closes #18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant