Rinkkasatiainen.github.com

Github pages - my own learning diary


View My GitHub Profile

See what's changed in your project

Wanna see logs?

so-called one-liner?

$ git log --oneline

A bit more information:

$ git log --format=[oneline|short|medium|full|fuller|email|raw]

if omitted, ‘medium’ by default

Show the 5 most recent commits - 3 ways to do it:

$ git log HEAD~5..HEAD --oneline  #show last 5 commits as one line
$ git log HEAD^^^^..HEAD --oneline  #show last 5 commits as one line
$ git log -5 --oneline  #show last 5 commits as one line

What has changed?

What’s changed in your working tree, compared to the staging area

$ git diff

Differences in between the staged changes and the repository

$ git diff --staged

Changes between working tree and the repository HEAD

$ git diff HEAD