閱讀我有以下我.git/config
權限被拒絕(公鑰)。致命的:無法從遠程倉庫
1 [core]
2 repositoryformatversion = 0
3 filemode = true
4 bare = false
5 logallrefupdates = true
6 [remote "origin"]
7 url = [email protected]:monajalal/instagram-scraper.git
8 fetch = +refs/heads/*:refs/remotes/origin/*
當我試圖把更改主我得到這個錯誤:
$ git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我曾嘗試這兩個但仍然得到錯誤:
2150 git remote set-url origin https://github.com/monajalal/instagram-scraper.git
2154 git remote set-url origin [email protected]:monajalal/instagram-scraper.git
[email protected]:~/computer_vision/instagram/instagram$ git log
commit e69644389a5c7be65ae6eae14d74065e221600cb
Author: Mona Jalal <[email protected]>
Date: Wed Mar 1 17:48:00 2017 -0600
scrapy for instagram skeleton
[email protected]:~/computer_vision/instagram/instagram$ git status
On branch master
nothing to commit, working directory clean
$ uname -a ; lsb_release -a
Linux pascal 3.13.0-62-generiC#102-Ubuntu SMP Tue Aug 11 14:29:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
請建議修復。
**「權限被拒絕(公鑰)」 **,你有沒有在你的GitHub帳戶中添加你的公鑰('〜/ .ssh/id_rsa.pub')? –