LoginSignup
47
39

More than 5 years have passed since last update.

Gitコマンドエラーとその対応方法(初心者)

Last updated at Posted at 2015-11-17

gitはadd commit push あとはmerge プルリがなんとか。rebaseをちょっとわかってきた新卒エンジニアです。

Gitコマンドででてきたエラーまとめを書いていこうかなと思います。
ググルのめんどいなとおもって・・・

git push -u origin master

エラー

conq: repository does not exist.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
そのリポジトリはもうあるよって言われているので

2018/01/12追記
コメントをいただいたので修正
conq: repository does not exist. => リポジトリがありません。
fatal: Could not read from remote repository. => リモートリポジトリが読めません。
Please make sure you have the correct access rights and the repository exists.
=> あなたが正しいアクセス権を持っているかそのリポジトリが存在することを確認してください。

対応法

git remote set-url origin git@bitbucket.org:ここに名前を入れる/リポジトリの名前.git
bitbucketで出会ったエラーなのでgit@以下は適宜変えます。

2016/11/30編集
追加

参考

参考サイト1
参考サイト2
GitHub実践入門

47
39
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
47
39