using git log code example Example: git log git log # show commits git log -p # show diff files git log -p <path> # show diff specified files