Git 使用疑问
2015-08-04 12:47
405 查看
1) fatal: remote origin already exists. 解决办法
..$ git remote add origin git@git.*.com:tang/comment_server.git..$ git push -u origin master
git@git.*.com's password:
Permission denied, please try again.
git@git.*.com's password:
Permission denied, please try again.
git@git.*.com's password:
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
..$
解决办法
..$ git remote rm origin
..$ git remote add origin http://git.*.com/tang/comment_server.git ..$ git push -u origin master
Counting objects: 3, done.
Delta compression using up to 24 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 289 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To http://git.*.com/tang/comment_server.git * [new branch] master -> master
Branch master set up to track remote branch master from origin.
..$
2) fatal: The remote end hung up unexpectedly. 解决办法
..$ git push origin developUsername for 'http://git.*.com': tang
Password for 'http://tang@git.*.com':
Counting objects: 43, done.
Delta compression using up to 24 threads.
Compressing objects: 100% (22/22), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (24/24), 1.98 MiB | 0 bytes/s, done.
Total 24 (delta 6), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date
解决办法
..$ git config http.postBuffer 524288000
相关链接:http://stackoverflow.com/questions/16557071/git-error-rpc-failed-result-22-http-code-411
相关文章推荐
- Android Studio 简单介绍和使用问题小结
- Android Studio 简单介绍和使用问题小结
- 某CEO将公司最低工资提到7万美金,自己降薪90%
- O-C相关06:self和super关键字介绍——self关键字
- 新手浅谈Task异步编程和Thread多线程编程
- O-C相关06:self和super关键字介绍——self关键字
- DataTables从入门到精通
- doPost与doGet的区别
- Chrome浏览器上无法使用西瓜影音???
- [转载] 高效MacBook工作环境配置
- 数据库中INFORMATION_SCHEMA的说明及使用
- windows下找到进程并杀死
- VS2008中代码段(Snippet)及代码段编辑
- (七十四)Android showDialog时报错requestFeature() must be called before adding content
- Android Studio常用插件续
- MFC:程序标题修改
- 2014年上半年阅读书单
- linux pthread 多线程操作
- 二叉树中和为某一值的路径
- 「深入 Exchange 2013」18 队列 part3