git quick reference

1. find out changed files in a commit
e.g.
$ git diff-tree --no-commit-id --name-only -r 5ada787d6688d388c8cdeb0ce87bfc7ac209106f

2. add all untracked, modified, deleted files to a commit
$ git add -A

Leave a Reply

Your email address will not be published. Required fields are marked *

two × 3 =