GitHubをBitbucketからGithubに変更しようとしていますが、
うまくいかず、切り分けができないためどなたか対応策をご教授いただければと存じます。
○現象○
Git HubのURLをremoteに追加する事はできたのですが、Bitbucketのorigin URLを削除する事ができず
git pullしようとするとBitbucketへ接続されます
※ローカル環境ではGitHubに変更できました
環境
AWSのLinux
GitHubのURLをremoteコマンドで追加
html
1git remote add origin https://github.com/自分のユーザー名/blog.git/
remote -vを選択するとBitbucketが選択されている
html
1 git remote -v 2origin https://taku633@bitbucket.org/自分のユーザー名/blog.git (fetch) 3origin https://taku633@bitbucket.org/自分のユーザー名/blog.git (push) 4origin https://github.com/自分のユーザー名/blog.git/ (push)
git remote rm originしてもbitbucket のみ表示され、2回めのgit remote rm originしても
fatalとなる
html
1$ git remote rm origin 2$ git remote -v 3origin https://taku633@bitbucket.org/自分のユーザー名/blog.git (fetch) 4origin https://taku633@bitbucket.org/自分のユーザー名/blog.git (push) 5 6$ git remote rm origin 7fatal: No such remote: origin
コンフィグ設定は以下ですが、特段Bitbucketを指定していません。
.git/config
html
1 1129 git remote rm origin 2 1130 git remote show origin 3[core] 4 repositoryformatversion = 0 5 filemode = true 6 bare = false 7 logallrefupdates = true 8[branch "master"]
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/05 03:20