To show local commits in Git, use the following command:
git log
This will display a list of all local commits on the current branch, with the most recent commit listed first. You can navigate through the list using the arrow keys or by scrolling up and down.
Alternatively, you can use the following command to display a more detailed view of each commit:
git log --oneline --decorate --graph --all
This command will display a graph of all commits, including local branches and remote branches, making it easier to see the relationship between different commits.




