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

hit clear command #77

Closed
vrom911 opened this issue Jul 10, 2019 · 2 comments · Fixed by #97
Closed

hit clear command #77

vrom911 opened this issue Jul 10, 2019 · 2 comments · Fixed by #97
Assignees
Labels
CLI command-line interface enhancement New feature or request Git Git commands

Comments

@vrom911
Copy link
Member

vrom911 commented Jul 10, 2019

It should clear all modified/new/deleted files and return to the previous state.

@vrom911 vrom911 added enhancement New feature or request Git Git commands CLI command-line interface labels Jul 10, 2019
@kahlil29
Copy link
Contributor

Does this work like a git reset HEAD --hard ?

@chshersh
Copy link
Contributor

@kahlil29 It should work like git checkout -- . + couple extra tricks to remove untracked files. This command will completely remove all local changes. This is useful when you want to play with some library locally, but not really need it. Since the changes are irreversible, hit clear command will prompt about whether you are sure you want to do this and will have -f|--force flag to ignore prompt.

@chshersh chshersh self-assigned this Jul 29, 2019
chshersh added a commit that referenced this issue Jul 29, 2019
chshersh added a commit that referenced this issue Jul 29, 2019
vrom911 pushed a commit that referenced this issue Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI command-line interface enhancement New feature or request Git Git commands
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants