Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools Github Token #307

Open
junxnone opened this issue Jun 20, 2024 · 0 comments
Open

Tools Github Token #307

junxnone opened this issue Jun 20, 2024 · 0 comments

Comments

@junxnone
Copy link
Owner

junxnone commented Jun 20, 2024

Develop with Github personal access token

Github Setup

  • Settings -> Developer Settings -> Personal access tokens -> Tokens(classic) -> Generate new token

image

Note

保存好 token 备用

Host 端设置


git_repo_token=ghp_ZoDxxxx
git_username="your_user_name"
git config --global user.name  $git_username
touch ~/.git-credentials
echo "https://$git_username:$git_repo_token@github.com" > ~/.git-credentials
git config --global credential.helper store
cat << EOF > ~/.netrc
machine github.com
  login not-used
  password $git_repo_token
machine api.github.com
  login not-used
  password $git_repo_token
EOF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant