Skip to content

Instantly share code, notes, and snippets.

@mmajewsk
Last active January 4, 2020 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmajewsk/a100b899d615278adbd964f3faea4e7f to your computer and use it in GitHub Desktop.
Save mmajewsk/a100b899d615278adbd964f3faea4e7f to your computer and use it in GitHub Desktop.
git use credentials fron commit

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment