git使用过程问题总结
来源:互联网 发布:淘宝店铺认证后怎么办 编辑:程序博客网 时间:2024/03/29 08:12
1)没有权限。
Administrator@PC201401202312 /d/nodejs (master)
$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts
.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
问题的意思是说访问远程仓库的时候出错了。我猜是没有把公钥上传到heroku的原因,于是我进行了下面的操作。
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa.
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub.
The key fingerprint is:
af:d2:8b:37:7f:7d:f2:65:ab:bc:d4:47:df:d6:e6:98 Administrator@PC201401202312
Administrator@PC201401202312 /d/nodejs (master)
$ heroku keys:add
Found existing public key: C:/Users/Administrator/.ssh/id_rsa.pub
Uploading SSH public key C:/Users/Administrator/.ssh/id_rsa.pub... done
Administrator@PC201401202312 /d/nodejs (master)
$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts
.
Initializing repository, done.
Counting objects: 2514, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2328/2328), done.
Writing objects: 10% (275/2514), 3.70 MiB | 12 KiB/s
从上面可以看到,当我在本地生成秘钥对,而且把公钥上传到heroku,之后,然后再把代码上传到heroku。这时可以上传了。
Administrator@PC201401202312 /d/nodejs (master)
$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts
.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
问题的意思是说访问远程仓库的时候出错了。我猜是没有把公钥上传到heroku的原因,于是我进行了下面的操作。
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa.
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub.
The key fingerprint is:
af:d2:8b:37:7f:7d:f2:65:ab:bc:d4:47:df:d6:e6:98 Administrator@PC201401202312
Administrator@PC201401202312 /d/nodejs (master)
$ heroku keys:add
Found existing public key: C:/Users/Administrator/.ssh/id_rsa.pub
Uploading SSH public key C:/Users/Administrator/.ssh/id_rsa.pub... done
Administrator@PC201401202312 /d/nodejs (master)
$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts
.
Initializing repository, done.
Counting objects: 2514, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2328/2328), done.
Writing objects: 10% (275/2514), 3.70 MiB | 12 KiB/s
从上面可以看到,当我在本地生成秘钥对,而且把公钥上传到heroku,之后,然后再把代码上传到heroku。这时可以上传了。
0 0
- git使用过程问题总结
- Git使用过程遇到的问题
- git 使用过程遇到的问题集合
- git使用过程中出现的问题
- Git使用过程遇到的问题
- git 使用过程遇到的问题集合
- Diffy使用过程问题总结
- python 使用过程问题总结
- IntelliJ IDEA使用git的问题总结
- IntelliJ IDEA使用git的问题总结
- Quartus、SOPC、Nios使用过程问题总结
- AS3使用过程中问题总结
- yii+mySQL使用过程中问题总结
- Android Studio 1.2使用过程问题总结
- luajavabridge 使用过程出现问题的总结
- ckeditor使用过程中的问题总结1
- Zabbix使用过程中的问题总结
- select2使用过程中的问题总结
- 当恢复sql server bak文件时,原始的用户无法删除
- 算术运算符
- 为什么交易系统不能出现大事务?
- 题目1122:吃糖果
- Virtual Judge Contest 1-B-C
- git使用过程问题总结
- 关于浮点数
- JS刷新父窗口的几种方式
- 建临时文件并向文件写入内容
- MySql中的时间和日期函数
- java中一维数组学习笔记
- Reporting Service部署之访问权限
- nodejs--socketIo的基础应用
- Click事件也能获取鼠标单击的坐标