github 通过 token 提交代码
生成 token
个人头像 ->Setttings->Developer settings->Personal access tokens->Generate new token
登录 github 后点这里进入 设置 token
本地设置
清空本地明码
git config --local credential.helper ""
设置 token
批改服务的配置,配置文件在 .git/config
[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,{用户名} 设置为本人提交的用户名,{生成的 token} 替换成 token
$1.01^{365} ≈ 37.7834343329$
$0.99^{365} ≈ 0.02551796445$
置信保持的力量!