gists/git.md

9 lines
145 B
Markdown

# Git
### What commit added a certain file?
git log --diff-filter=A -- path/file
### Edits of a certain file
git diff <branch> -- path/file