git push error

浏览:38日期:2023-09-23

问题描述

➜ zlzachary.github.io git:(gh-pages) git push origin gh-pagesremote: Permission to zdlzachary/zlzachary.github.io.git denied to zachary05.fatal: unable to access ’https://github.com/zdlzachary/zlzachary.github.io.git/’: The requested URL returned error: 403

问题解答

回答1:

配置SSH keys,如果配置了的,再检查当前分支你是否有提交权限,如果有提交权限,再将https://github.com/zdlzachary/zlzachary.github.io.git/这个HTTPS地址改为SSH地址git@github.com:zdlzachary/zlzachary.github.io.git试试。

相关文章: