Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1022 Bytes

File metadata and controls

34 lines (27 loc) · 1022 Bytes

Configuring Proxy for using git on OPENU's WSL2 (Ubuntu)

Set proxy

git config --global http.proxy http://proxy5b.openu.ac.il:80
git config --global https.proxy https://proxy5b.openu.ac.il:80

Generate access token

Log on to github with your browser and follow this instructions:

*managing-your-personal-access-tokens

*tokens

Store the token on your local machine

Several alternatives:

Use the Git Credential Store to store the token

git config --global credential.helper store

Use the Windows Credential Manager:

git config --global credential.helper manager-core

Store in a .netrc File

echo "machine github.com login your_username password your_token_here" > ~/.netrc
chmod 600 ~/.netrc

Use SSH Instead of a Token

For better security, set up SSH authentication with GitHub instead of using a token