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

Improve the git reset exercise #298

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions reset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ We use reset to unstage change, but we can also do many more different things.
4. What happens to your working directory, your log and your stage?
5. Run `git reset --mixed HEAD~1`
6. What happens to your working directory, your log and your stage?
7. Run `git reset --hard HEAD~1`
7. Run `git add 10.txt` and modify the file without adding it again
8. What happens to your working directory, your log and your stage?
9. Now try to use `git revert HEAD~1`
9. Run `git reset --hard HEAD~1`
10. What happens to your working directory, your log and your stage?
11. Now try to use `git revert HEAD~1`
12. What happens to your working directory, your log and your stage?

## Useful commands

Expand Down