Skip to content

Instantly share code, notes, and snippets.

@KumarManoj-S
Created July 26, 2020 15:57
Show Gist options
  • Save KumarManoj-S/3b9bca6c27a655acb32678ed0714259f to your computer and use it in GitHub Desktop.
Save KumarManoj-S/3b9bca6c27a655acb32678ed0714259f to your computer and use it in GitHub Desktop.
Change the git user
# To change the git user globally, use the --global flag as follows,
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git config --global user.password "your password"
# To change only for a particular repo, do as follows,
git config user.email "you@example.com"
git config user.name "Your Name"
git config user.password "your password"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment