0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[AndroidStudio git連携]新規ブランチでpushしてもgithubに反映されない

Posted at

状況

新しくプロジェクトを作り、git連携しました。
masterブランチではうまくいっていたのですが、新しくdevelopブランチを作成し、pushしたらgithubに反映されなくなりました。

環境

AndroidStudio3.2.1

確認したこと

  1. masterブランチはpushした内容がgithubに反映されていることを確認済み
  2. developブランチのpushは成功している
  3. developブランチをpullすると過去にpushした内容を取得できる
  4. 2でpushしたはずのgithubリポジトリにdevelopの変更内容は反映されていない

結論 

originのURL設定が想定していたものと違っていました。
以前使用していたリポジトリ設定が残っていたようで、githubとoriginの設定先が違うものになっていました。
スクリーンショット 0032-04-08 14.59.06.png
HelpApplicationリポジトリにpushしたいのに、sampleリポジトリにpushする設定になっちゃってます…。

###対処
ターミナルからgithubとoriginの設定先を同じものに変更

参考
https://neet-rookie.hatenablog.com/entry/2020/02/19/152652

pushして無事にgithubに反映されていることが確認できました!

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?