github通過token提交代碼


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\)
相信堅持的力量!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM