Skip to content

Commit 8b2f42f

Browse files
authored
Enhance git tricks with reflog and checkout tips
1 parent 7ae7166 commit 8b2f42f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

01_version_control/my_favorite_neat_little_git_trick_demo.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
[format]
1515
pretty = format:%C(auto,yellow)%h %C(auto,blue)%>(12,trunc)%ad %C(auto,green)%<(20,trunc)%aN%C(auto,reset)%s%C(auto,red)% gD% D
1616
```
17+
- If you rebased/merged and messed up your history, use `git reflog` to go back to a previous state
18+
- If you only need one file from another commit or branch, use `git checkout <branch_or_sha> -- <path>`
1719
1820
## Tricks from Winter Term 2024/25
1921

0 commit comments

Comments
 (0)