Skip to content

Instantly share code, notes, and snippets.

@benjamincharity
Last active May 15, 2017 20:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjamincharity/3420507 to your computer and use it in GitHub Desktop.
Save benjamincharity/3420507 to your computer and use it in GitHub Desktop.
Fix the github auth issue where it asks for permissions every push/pull.
// Step 1.
// this returns some useful information which will help you fill out the next command.
// look for the line that begins with "remote.origin.url".
$ git config -l
// Step 2.
// use the information from step one to replace 'your_username' and 'your_project'.
$ git config remote.origin.url git@github.com:your_username/your_project.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment