Latest Updates

Post Top Ad

24 August, 2021

Show Git log with different options

    

Show Git log with different options


After every commit git log appends its log file. These logs files have various data stored. Git has different ways to show only specific logs. Let's see these options.







1. git config --list

The command will show the username,email-id,repository information,branch etc



2. git log


The command will show the entire git log.



3. git show <commit_id>


The command will show the entire information based on the commit_id.




4. git log -1


The command will show the latest from top -1
The command will show the latest from top -2




5. git log -oneline


The command will show the logs in one line with limited information.




6. git log --grep "<name>"


The command will filter the name from the logs and show only with <name>









Please Subscribe and Like

No comments:

Post Top Ad

Your Ad Spot

Pages