gists/git.md

9 lines
145 B
Markdown
Raw Normal View History

2021-11-30 14:49:01 +00:00
# Git
### What commit added a certain file?
git log --diff-filter=A -- path/file
### Edits of a certain file
git diff <branch> -- path/file