Git
> git clean -dfx> git log --all --full-history -- **/thefile.*> git pull --rebase# Once
> git pull --rebase --autostash# Permanent
> git config pull.rebase true
> git config rebase.autoStash true> git commit -m "Something terribly misguided" (1)
> git reset HEAD~ (2)
<< edit files as necessary >> (3)
> git add ... (4)
> git commit -c ORIG_HEAD (5)Last updated