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
Iteration Statements (Loop Statements)
Differentiate between require() and include() function in PHP?
Advantages Or Benefits Of C Over Other Programming Languages
What is the difference between git diff and git status?
Function Overloading In C++
Switch Statement in C
BASIC HTML PAGE
Pass data from a function in a model to a controller in Codigniter
Email validation in PHP
DO WHILE LOOP in C Programming
What is Yii Framework | Advantages of Yii over other frameworks | Different versions of Yii
Creating And Using A Database
Different types of errors in PHP?
Object Oriented Programming
Structures in C
Flowchart In Programming
How to Get current version of PHP?
Generating A QR Code With PHP
Structure of a C Program
The differences between static and dynamic websites?
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