Limit number of commits by
. E.g. git log -5 will limit to 5 commits.
Condense each commit to a single line.
Display the full diff of each commit.
Include which files were altered and the relative number of lines that were added or deleted from each of them.
$ git log --author= "<pattern>"
Search for commits by a particular author.
$ git log --grep="<pattern>"
Search for commits with a commit message that matches .
$ git log <since>..<until>
Show commits that occur between and . Args can be a commit ID, branch name, HEAD, or any other kind of revision reference.
Only display commits that have the specified file.
$ git log --graph --decorate
--graph flag draws a text based graph of commits on left side of commit msgs. --decorate adds names of branches or tags of commits shown.
No comments:
Post a Comment