Skip to content

Commit

Permalink
made git uncool muahahaha
Browse files Browse the repository at this point in the history
catch me if you can
  • Loading branch information
pranavgade20 committed Mar 7, 2022
1 parent f44405f commit 14ad68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TIME_TRAVELLING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To start, switch to the master branch(`git switch master`) and create a new bran

To go to a previous commit, we can `git checkout <commit>`. Before we do that, let us try to find a commit to checkout to. `git blame` is very handy in these cases. In particular, we'd like to find that commit that unchecked the following checkbox:

- [x] git is cool
- [ ] git is cool

And undo it. `git blame TIME_TRAVELLING.md` will show the commit-id which changed the line. We can then copy that commit-id and `git checkout commit-id` to go to that commit. Try looking around to make sure that you have indeed travelled back in time!

Expand Down

0 comments on commit 14ad68f

Please sign in to comment.