Skip to content

Instantly share code, notes, and snippets.

@SanjayBoricha
Last active April 21, 2020 10:48
Show Gist options
  • Save SanjayBoricha/6807963a7b10f93129e6d64637743a36 to your computer and use it in GitHub Desktop.
Save SanjayBoricha/6807963a7b10f93129e6d64637743a36 to your computer and use it in GitHub Desktop.
Some important commands for git

set commit email for one repo : git config user.email "your@email.com" set commit email global : git config --global user.email "your@email.com"

set commit email for one repo : git config user.name "your-name" set commit email global : git config --global user.name "your-name"

store git password when using https :

  • for one repo : git config credential.helper store
  • for set globally : git config --global credential.helper store (run git pull and enter your credential)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment