Photo by Praveen Thirumurugan on Unsplash
Showing commit logs with Git
๐ก You can see the history of changes in a branch using git log command.
1.- You can see a history of changes of a branch using git log
command. This command shows us all previous commits with their structure (Reference number of the commit, author, date and time, commit message, etc).
git log
2.- Another way to see the historical changes is using git log --oneline
command.
git log --oneline
3.- If you want to see the differences between the files use git log -p
command.
git log -p
Reference:
ย