Git display info of last commit (HEAD) in one line

Display last commit info from head in one line

$ git log --pretty=format:"%h|%an|%ad|%s" -1
97d79ec|Dave Methvin|Mon Nov 9 17:49:01 2015 -0500|Dimensions: Empty sets should return undefined

Display all commits info from head in one line

$ git log --pretty=format:"%h|%an|%ad|%s"
Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit

Comments

Click here to write/view comments