better check-routine for git-creation