Skip to content

Instantly share code, notes, and snippets.

@Hansimov
Created June 6, 2022 16:56
Show Gist options
  • Select an option

  • Save Hansimov/dd05449fdb775d05820058b6a7f7f493 to your computer and use it in GitHub Desktop.

Select an option

Save Hansimov/dd05449fdb775d05820058b6a7f7f493 to your computer and use it in GitHub Desktop.
Windows Git bash use token in _netrc
  1. Go to GitHub > Settings > Developer Settings > Personal access tokens > Generate new token, and copy it

  2. Create _netrc under C:\Users\<username>, write the following content into it:

    machine github.com
    login <username>
    password ghp_*****************************
    
  3. Then git bash will use this token to communicate with remote server


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