LoginSignup
13
12

More than 5 years have passed since last update.

remoteのブランチが更新されない時に

Posted at

作業していると git fetchしてもremoteのbranch情報が更新されない時が時々ある。

自分の場合は、本来は削除されているbranchにも関わらず表示されているということが特に多い。

そんな時に下記のcommandを実行すると問題なく更新される。

git remote prune origin

別にremoteのbranch更新されなくても問題ないじゃん!
って言われるかもしれないけど、branchが整理されてるほうが補完とかもいい感じになるので、自分の場合は結構こまめに実行している。

13
12
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
13
12