Skip to content

Commit 3c29a97

Browse files
authored
Update GIT.md
1 parent b715116 commit 3c29a97

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

developers/GIT.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ Author: ...
163163
Date: ...
164164
```
165165

166+
## Inside Git
167+
Here is a lovely image from WizardZines showing how git stores information
168+
169+
![image](./inside-git.png)
170+
166171
If you run `git revert 1712b5b93cd029685f68555c1c3819369a6c25ba -m 1`, you will go back to the tree in commit `5bc589318`, and if you do `-m 2`, you will go back to the tree in `398800a71`. `-m 1` refers to the (previous) latest commit of the branch that was the merge destination, and `-m 2` refers to the latest commit of the branch that got merged in.
167172

168173
Read more here: https://stackoverflow.com/a/66707438/1989186

0 commit comments

Comments
 (0)