To limit the number of logs shown use `git log -n` where n is the number og logs you want, ex. to show only last 5 commit logs, you can do `git log -5`
To search for commit message in git logs, use `git log --grep "message you want to search"` Rahmat Budiharso http://rbudiharso.com http://rbudiharso.wordpress.com On Jul 17, 2013, at 11:51 AM, [email protected] wrote: > Hi, > > I am trying to grep for git commit msg in git log...once I do git log..the > log is really huge?is there a way to get only the last 100 commits or is > there an efficient way to search commit msg in git log ?suggestions please? > > Thanks, > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
