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

You don't want to use undoable actions if you don't have to #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adymitruk
Copy link

git reset --hard is one of the most dangerous commands because it will permanently destroy work. If you do this by accident, your work is gone.

The safer way to do this is with git stash -a or git stash save --all to be explicit. The stash is not going to be pushed up so it won't bloat any repositories.

git reset --hard is not like handing a toddler scissors, it's like handing them a gun. We should not be teaching this to new git users.

@adymitruk
Copy link
Author

accidentally added the git part of the command the first time.

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 this pull request may close these issues.

1 participant