github通過token提交代碼

生成token
個人頭像->Setttings->Developer settings->Personal access tokens->Generate new token ? 登錄github后點(diǎn)這里進(jìn)入
本地設(shè)置
清空本地密碼
git config --local credential.helper ""
設(shè)置token
修改服務(wù)的配置,配置文件在
[core]
? ? ? ?repositoryformatversion = 0
? ? ? ?filemode = true
? ? ? ?bare = false
? ? ? ?logallrefupdates = true
? ? ? ?ignorecase = true
? ? ? ?precomposeunicode = true
[remote "origin"]
? ? ? ?url = https://{用戶名}:{生成的token}@github.com/username/java.git
? ? ? ?fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
? ? ? ?remote = origin
? ? ? ?merge = refs/heads/main
說明:修改url,{用戶名}設(shè)置為自己提交的用戶名,{生成的token}替換成token
1.01^{365} ≈ 37.7834343329 ??
0.99^{365} ≈ 0.02551796445 ??
相信堅(jiān)持的力量!
標(biāo)簽: