git show-branch tree command line 1

git show-branch tree command line

git log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

Here is what the above code is Doing:
1. git log: This is the base command for viewing the commit history.
2. –all: This option tells Git to show the commits from all branches.
3. –graph: This option tells Git to show the commits in a graph format.
4. –pretty=format:’%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset’: This option tells Git to show the commits in a specific format.
5. –abbrev-commit: This option tells Git to show only the first few characters of the SHA-1 checksum instead of all 40 characters.

Similar Posts