LoginSignup
2
1

More than 5 years have passed since last update.

git pull と git push ができなくなった。備忘録

Posted at

fatal: The current branch feature/your_branch has no upstream branch. と出てきた。

現在のブランチが upstream (リモートのgit) にないよ。と言われた。
そんなはずはない。何回かgit pushもしたことあるし, pullもしたことあるのに!

リモートブランチの追跡が無かったようです。
参考リンク:git pushとブランチの追跡

$ git push -u origin <branch>

カレントブランチの変更をリモートにpushしつつ、そのブランチを追跡できるようになる。

これを記述したら pull も push もできるようになりました。

2
1
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
2
1