Skip to content

Commit 4ae08d6

Browse files
Add git trick: reflog and checkout tips (#228)
* Enhance git tricks with reflog and checkout tips * Update 01_version_control/my_favorite_neat_little_git_trick_demo.md --------- Co-authored-by: Benjamin Uekermann <[email protected]> Co-authored-by: Benjamin Uekermann <[email protected]>
1 parent d7e8ae3 commit 4ae08d6

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
@@ -15,6 +15,8 @@
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
```
1717
18+
- If you rebased/merged and messed up your history, use `git reflog` to go back to a previous state
19+
- If you only need one file from another commit or branch, use `git checkout <branch_or_sha> -- <path>`
1820
- Use [Git LFS](https://git-lfs.com/) for big files >10 MB or for non-diffable binaries (e.g., images, media, archives, shared libraries).
1921
2022
## Tricks from Winter Term 2024/25

0 commit comments

Comments
 (0)