[200620] Learn to use git log
- (Preferred) Commit-id with HEAD ref:
git reflog
- Short commit-id:
git log --oneline
- Full commit-id:
git log --pretty=oneline
Then use git show
to see changes of certain commit-id,
- (Preferred) See last commit:
git show
- See certain commit-id:
git show commit-id
- See certain fild of certain commit-id:
git show commit-id _filename_