Git: hide specific branch when doing git log --allon Dragoș Străinu's blog
I deploy this website on Github pages. Deployment and hosting are on
When doing my usual check of branch status and history using:
git log --oneline --all --graph
I faced this problem:
I see a very long list of commits on
gh-pages branch and I need to scroll down to see my other branches.
You can hide a specific branch using
--exclude option for
git log. Now my command looks like this:
git log \
Now it looks better:
You can add this command in a git alias.
If needed check here for more things to exclude from
You can check why I prefer to do long commands instead of git aliases at How I use Git.