Checking the git repository on startup and on edit.