Blog / Dev / Git Nice trick to cleanup a git repo and keeping only the last commit (2020-12-21) See this article on stackoverflow. add Lola git config --global alias.lola "log --graph --decorate --pretty=oneline --abbrev-commit --all"