Monthly Archives: September 2013

Replace tabs by space on git history

So, I prefer spaces, and when I press tab, it should instead write 4 spaces. I forgot to set this option on Sublime Text and did some commits with tabs. The following git command will rewrite the repo history and replace tabs by 4 spaces. git filter-branch –tree-filter ‘git diff-tree –name-only –diff-filter=AM -r –no-commit-id $GIT_COMMIT […]