How To Check Git Logs In Gitlab Server
How To Check Git Logs, If you want to check git log using the command line So you can check it there are many options available for checking the git logs.
I have created a testing directory where i will make some files and also configured the user who will use this repository to check the logs later.
Check Out : Merge Branch
I have configured the user for this repository
Now i have added a file and commit it
Now start checking the logs
With -p or –patch option you can see the difference in each commit.
git log -p
Check Out : How To Reset Gitlab Root Password
git log -p -n where n is used to number of limit entries
git log –stats
The above commands shows the same result but is very useful for code review or quickly to browse what happens in a series of commits including file changed & insertion.
Check Out : Create Branch
With –pretty options , this shows you output in format rather than default.
git log –pretty
Check Commits in a one line
git log –pretty=oneline
Check logs using format
git log –pretty=format:”%h – %an, %s”
&an= author name
Check logs using Graph format
git log –pretty=format:”%h – %an, %s” –graph
For more options you may check it here on official site of Git
YouTube Link :