A Better GIT Output LOG
If your like me you utilize GIT for every project. Git is the best for version-control and tracking all changes you do in your source code during the software development process. I have used GIT to track small prototype HTML,JS,CSS projects all the way to massive enterprise level SaaS Angular SPA applications.
One thing is the LOG files, they can be a massive eye sore in the terminal.
The above is hard to read, color is coordinated at all and not organized. Check out the below example.
Much more organized and color coordinated. Not an eyesore at all. It is real easy to update and you can make an alias so you do not have to type:
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
git config –global alias.lg “log –color –graph –pretty=format:’%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset’ –abbrev-commit”
Then every time you need to see your log just type:
Or, if you want to see the lines that changed:
git lg -p