History

History is nothing but all the commits which we did earlier, There are multiple ways to see our commits using git log.

Git Log

git log

git log --oneline -p It will show you detail of last commit with what line were added and removed.

git log --oneline --graph It will show a visual representation of branched and commits

Date Ranges

git log --until=1.minute.ago

git log --since=1.day.ago git log --since=1.hour.ago git log --since=1.month.ago

Git diff

git diff hash2 hash1

Configuration

if you don't want some of files to be commit ever then just create a .gitignore file and put the particular file name in it.

results matching ""

    No results matching ""