Git免密碼提交


下面說一下https克隆的方式免密碼提交

在我們下載鏈接前面加上賬號:密碼@即可

方式一:

  • 使用https的方式克隆代碼

    git clone '地址'

  • 查看項目中的配置文件

    vim .git/config

    [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true [remote “origin”] url = https://github.com/地址 fetch = +refs/heads/:refs/remotes/origin/ [branch “master”] remote = origin merge = refs/heads/master

  • 修改remote中的url那行如下

    url = https://賬號:密碼@github.com/地址 

    方式二:

     


免責聲明!

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



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