linux 使用 git The requested URL returned error: 403
2016-09-01 21:38
896 查看
从github上给出的git使用说明上看,流程是这样的:
但是发现在使用push时会出现 The requested URL returned error 403,发现以下命令解决问题
git remote set-url origin https://【Your Account】@github.com/Applepleple/Stormcv-web.git
除了上述步骤外,还需要设置自己的账户名和密码
git config --global user.name "Your Name Here"
git config --global user.email "your_email@example.com"
如果需要使用ignore的话,可以在主目录下建一个.gitignore的文件,具体的书写格式这里不再详细介绍啦
添加.gitignore后,用git add \*就可以添加非ignore文件了
如果ignore的文件已经被commit过了,需要
git rm -r –cached .
…or create a new repository on the command line
echo "# Stormcv-web" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/Applepleple/Stormcv-web.git git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/Applepleple/Stormcv-web.git git push -u origin master
但是发现在使用push时会出现 The requested URL returned error 403,发现以下命令解决问题
git remote set-url origin https://【Your Account】@github.com/Applepleple/Stormcv-web.git
除了上述步骤外,还需要设置自己的账户名和密码
git config --global user.name "Your Name Here"
git config --global user.email "your_email@example.com"
如果需要使用ignore的话,可以在主目录下建一个.gitignore的文件,具体的书写格式这里不再详细介绍啦
添加.gitignore后,用git add \*就可以添加非ignore文件了
如果ignore的文件已经被commit过了,需要
git rm -r –cached .
相关文章推荐
- GitHub 在使用命令行 git push 时报错:The requested URL returned error: 403
- git错误: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/futu
- 解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing
- 关于使用Git的时候出现"HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large"的解决方法
- "error: The requested URL returned error: 403 Forbidden while accessing“(git错误)
- git push报错 The requested URL returned error: 403
- git报错:error: The requested URL returned error: 403 Forbidden while accessing https://github.com/summ
- git push 报 The requested URL returned error: 403 错误
- git clone error: The requested URL returned error: 403 Forbidden while accessing.
- 使用git报错error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Time-out
- vs2015 git push代码的时候出现The requested URL returned error: 403
- 解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing
- git 无法提交报错 - error: The requested URL returned error: 403 Forbidden while accessing https://github.c
- 解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing
- 解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing
- GitLab 使用git push 出现RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
- Failed with error: fatal: unable to access 'xxxx.git/': The requested URL returned error: 403
- PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
- git The requested URL returned error:443
- 解决git clone时报错:The requested URL returned error: 401 Unauthorized while accessing