Rainlog

github同步 403 Forbidden while accessing 解决办法

想把服务器上的typecho主题同步添加到远程库 github遇到

The requested URL returned error: 403 Forbidden while accessing

的错误,google

The requested URL returned error: 403 Forbidden

参考这个, 虽然看明白了,但是说的太笼统没有具体解决办法!后来多google几个英文单词,

The requested URL returned error: 403 Forbidden while accessing

很快找到解决办法了
1 打开

vim .git/config

2 修改

[remote "origin"]!
    url = https://github.com/RainCaiForest/RainLog.git
    fetch = +refs/heads/*:refs/remotes/origin/*

[remote "origin"]
    url = https://RainCaiForest@github.com/RainCaiForest/RainLog.git
    fetch = +refs/heads/*:refs/remotes/origin/*

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »