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
Destructors in c++
CSRF (Cross Site Request Forgery) Protetion in Laravel
How to commonly pass data to all views from single controller in Laravel
Structure of a C Program
Object Oriented Programming
HTML5 Standards
Differences between GET and POST
Continue Statement in C
UNION in C
PHP Functions - Return Values
How to load public files in laravel
History of PHP
What is the difference between git diff and git status?
What are the different functions in PHP for sorting an array?
What is the difference between GET and POST?
Algorithm | Algorithm Design Techniques
Before Beginning Of Programming, Why C First? And Why Programming And Programmers
Arrays in C Programming
What are Arrays in PHP?
Basic And Intermediate Commands For Linux
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