Texinterest
Sign in
x
Texinterest
Empower your learning
About Us
Privacy Policy
Forum Discussions
C Programming
Subjects
Science
Computer
Programming
English
General Knowledge
Rennaissance
Courses
Exams
Interviews
Add Notes
Contact us
Menu
Science
Computer
Programming
English
General Knowledge
Rennaissance
What is the function of git log?
Git Log is used for Formatting the log output, Summary or history or filtering the commit.
Git log figures out where the bugs are introduced, to see the project history, revert problematic changes.
But the basic git log function is to show the commits.
You can alter the function of the git log bypassing many parameters into it.
By git log, you can filter commit history.
Limit number of commits displayed
The most basic filtering option for git log is to limit the number of commits that are displayed.
git log -<n> // <n> => You can limit git log output
git log -3 // Display recent 3 commits
Filter by date
git log //Function can also filter by date
git log --after="2014-7-1"
git log --after="yesterday"
Filter by the name of the author
git log --author="John"
Filter either by Ashok/Mathew
git log --author="John|Mathew"
Filter by message
git log --grep="Rest"
Filter By File
git log -- test.php index.php
//It returns all the commits that affected either by test.php or index.php
Filter By Content
git log -S"Hello, World!"
//It is possible for a search for commits that remove or introduce
Top Questions
Differentiate between require() and include() function in PHP?
Type conversion in C Programming
PHP Loops
Variables in C Programming
Switch Statement in C
Constructors in C++
CSRF (Cross Site Request Forgery) Protetion in Laravel
Function Overloading In C++
What is the differene between require(), require_once(), include() and include_once()
HTTP Status Codes List for REST API
Creating And Using A Database
SQL Joins
What is the function of git rm?
What is the function of git status in git?
What are sessions in PHP?
Structures in C
DOCTYPE in HTML
Destructors in c++
HTML5 Standards
Entities in HTML
Tex AI Assistant
Online & ready to help
×
Hi! 👋 I'm your Texinterest AI assistant.
Ask me anything about programming, interview prep, courses, or any topic you're studying.
Press Enter to send · Powered by Gemini AI