码迷,mamicode.com
首页 > 其他好文 > 详细

Git 使用疑问

时间:2015-08-04 14:59:29      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:

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.
..$

 

Git 使用疑问

标签:

原文地址:http://www.cnblogs.com/tangkaixin/p/4701684.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!