Fixing GIT to usable state

If anything fails to work just revert.