From 4fde5c3e3e3fe2a0c819edc9e8e6c868d78c013c Mon Sep 17 00:00:00 2001 From: Natarajan Ganapathi <75275123+natarajanganapathi@users.noreply.github.com> Date: Tue, 28 Nov 2023 23:50:15 +0530 Subject: [PATCH] Update git.md --- docs/tools/git.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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] +```