Skip to content

Instantly share code, notes, and snippets.

@saiumesh535
Last active June 15, 2020 07:08
Show Gist options
  • Save saiumesh535/65988809d9297b975d64f5f49071bf31 to your computer and use it in GitHub Desktop.
Save saiumesh535/65988809d9297b975d64f5f49071bf31 to your computer and use it in GitHub Desktop.
Different users for your git project
  1. First goto project folder
  2. Initialize git by git init command
  3. Set username with git config user.name "username” command
  4. Set email with git config user.email "[email protected] command
  5. Now create a repository in GitHub
  6. Now we will either set or add origin based on project status
  7. As github disabled using plain password in git url we need to get github personal access token from here
  8. Newly added git project git remote add origin https://username:[email protected]/saiumesh535/chi-http.git
  9. Existing git project git remote set-url origin https://username:[email protected]/saiumesh535/chi-http.git

Discard Local local changes git clean -fd

@SindhuraVakaApty
Copy link

It helps the best for most of people😄

@saiumesh535
Copy link
Author

It helps the best for most of people😄

🤞🏼🤞🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment