diff --git a/docs/tools/git.md b/docs/tools/git.md index a9f717c4..a37e3da6 100644 --- a/docs/tools/git.md +++ b/docs/tools/git.md @@ -19,7 +19,17 @@ git checkout # Revert 1 commit from remote git push --force origin HEAD~1: +``` +Set local repo user name and email +```sh +git config user.name "Your Name Here" +git config user.email [email protected] ``` +For (global) default email (which is configured in your ~/.gitconfig): +```sh +git config --global user.name "Your Name Here" +git config --global user.email [email protected] +```