1
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 1 year has passed since last update.

github上で削除されたブランチがローカルに残り続ける問題

Posted at

困ったこと

ローカルでのgit操作をコマンドライン行なっていたのですが、
リリース後にもブランチが残り続けていたので消す方法を調べました。

答え

git fetch -p

or

git fetch --prune

備考

gitにおいてデータは、基本的に破棄されないものらしいです。
また残し続けることによって、パフォーマンスにも影響が出ることがあるようなので
気になったタイミングで消していこうと思いました。

参考文献

https://tracpath.com/docs/git-fetch/
https://qiita.com/yunano/items/923e27bd7d3f30350813

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