diff --git a/git.md b/git.md new file mode 100644 index 0000000..d9dec7d --- /dev/null +++ b/git.md @@ -0,0 +1,8 @@ +# Git + +### What commit added a certain file? + git log --diff-filter=A -- path/file + + +### Edits of a certain file + git diff -- path/file