If you are lazy and want to set up credentials as in last commit git config user.name $(git log --format='%an' -1) git config user.email $(git log --format='%ae' -1)