Skip to content

Instantly share code, notes, and snippets.

@rawatds
Last active February 26, 2023 08:01
Show Gist options
  • Save rawatds/2469f28afeca2a553f677810c95e8660 to your computer and use it in GitHub Desktop.
Save rawatds/2469f28afeca2a553f677810c95e8660 to your computer and use it in GitHub Desktop.
Git log

To see graphically the commits and where our HEAD is)

git log --all --decorate --oneline --graph

To see commit history and what is changed in each commit

$ git log --oneline -p

To see logs related to only, where its added/modified/deleted.

$ git log -- <filename>

@rawatds
Copy link
Author

rawatds commented Feb 26, 2023

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment