解决github push错误The requested URL returned error: 403 Forbidden while accessing
2016-03-08 14:31
471 查看
github push错误:
[html]
view plain
copy
print?
git push
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/future.git/info/refs
git version 1.7.1
OS:CENTOS
解决方案:
vim .git/config
修改
[plain]
view plain
copy
print?
[remote "origin"]
url = https://github.com/username/example.git
为:
[plain]
view plain
copy
print?
[remote "origin"]
url = https://username@github.com/username/example.git
再次git push,弹出框输入密码,即可提交
或者修改为
[remote "origin"]
url = https://username:password@github.com/username/example.git
也可以解决 并且省去了输入密码一步
[html]
view plain
copy
print?
git push
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/future.git/info/refs
git version 1.7.1
OS:CENTOS
解决方案:
vim .git/config
修改
[plain]
view plain
copy
print?
[remote "origin"]
url = https://github.com/username/example.git
为:
[plain]
view plain
copy
print?
[remote "origin"]
url = https://username@github.com/username/example.git
再次git push,弹出框输入密码,即可提交
或者修改为
[remote "origin"]
url = https://username:password@github.com/username/example.git
也可以解决 并且省去了输入密码一步
相关文章推荐
- codeforces Longest Increasing Subsequence
- UESTC--1252--24点游戏(dfs)
- 10029---关于EL表达式中requestScope和param区别
- UESTC--1252--24点游戏(dfs)
- Version & Build & CFBundleShortVersionString & CFBundleVersion
- PHP之include/require深入了解
- UITableView回调和table相关成员方法详解
- CALayer和UIView
- Handler,Looper,MessageQueue(Message)
- [custom UI series]android 自动排布的标签布局
- RoboGuice 3.0 (二)进阶篇
- SGI STL (4) :: String Implementation Issue
- 深入理解SetUID
- Selenium中expected_conditions下text_to_be_present_in_element_value方法的使用
- Your build settings specify a provisioning profile with the UUID, no provisioning profile ...问题的解决办法
- JEasyUI: Bug Fixing for perpertygrid
- 在vs中开发TypeScript,使用Require,import,export的实现
- BlueStacks不仅支持x86和ARM处理器,新版BlueStacks并不是单纯的实现虚拟化,而是运行整个Android系统
- iOS画图-UIBezierPath和CAShapeLayer的简单使用
- leetcode--Range Sum Query - Immutable