Showing posts with label list commits. Show all posts
Showing posts with label list commits. Show all posts

Monday, November 14, 2016

Git, see list of latest commits

To see list of commits:
git log

List of commits with file name & status:
git log --name-status

List of previous n commits
git log --name-status -n 2

List of commits by author name:
git log --name-status --author=Pritom (Case sensitive)

List of commits search by file name:
git log --name-status -n 2 --author=pritom | grep "Search"

Git list all commits for a specific file

Type to git bash:
git log --follow filename

and to quit from list type:
q