Guest User

Untitled

a guest
Oct 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. github recently switched to an https scheme as the default for cloning repos. as a side effect you may suddenly be prompted for a 'Username' and 'Password' when you push where, previously, you were able to do so without typing in credentials. the solution is to cause git to cache https credentials which is easy, since git uses curl under the covers
  2.  
  3. in your home directory create a file called '.netrc', for example
  4.  
  5. /Users/ahoward/.netrc
  6.  
  7.  
  8. in it put these contents
  9.  
  10. <pre>
  11. machine github.com
  12. login YOUR_GITHUB_USERNAME
  13. password YOUR_GITHUB_PASSWORD
  14.  
  15. </pre>
  16.  
  17. fixed!
Add Comment
Please, Sign In to add comment