前提・実現したいこと
rails勉強中の初心者です。
bitbuketへのgit pushができずに困っております。
###実施した手順
commandline
1$ git init 2$ git add -A 3$ git commit -m "Initialize repository" 4〜READMEファイルの編集〜 5$ git commit -am "Improve the README" 6$ git remote add origin git@bitbucket.org:ユーザー名/sample_app.git 7$ git push -u origin --all ←ここで以下エラー発生。
発生している問題・エラーメッセージ
commandline
1repository does not exist. 2fatal: Could not read from remote repository. 3 4Please make sure you have the correct access rights 5and the repository exists.(リポジトリへのURLがおかしい??)
エラーに対して実施、調べて見たこと
commandline
1$ git remote rm origin(一度削除し最初に実施した手順を再度行った) 2〜最初の手順をもう一度〜 3$ git status 4On branch master 5nothing to commit, working tree clean 6 7$ cat .git/config 8[core] 9 repositoryformatversion = 0 10 filemode = true 11 bare = false 12 logallrefupdates = true 13[remote "origin"] 14 url = git@bitbucket.org:ユーザー名/sample_app.git(URLは問題ないことを確認) 15 fetch = +refs/heads/*:refs/remotes/origin/* 16 17$ git remote add origin git@bitbucket.org:piyota08/sample_app.git 18fatal: remote origin already exists.(ここではリポジトリは存在している) 19 20$ git push -u origin --all 21repository does not exist. 22fatal: Could not read from remote repository.(ここではリポジトリを読み込めていない) 23 24Please make sure you have the correct access rights 25and the repository exists.(URLは上記で問題ないことを確認したがまたこのエラーになる。)
お願い
色々調べてみるも良い方法がわからず、、
一人では解決が難しいため、アドバイスをよろしくお願いします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/14 01:16