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 5 years have passed since last update.

Reflect the deletion of remote branch to local repository

Last updated at Posted at 2013-07-05
  • リモートとローカルのブランチ状況を確認する
git remote show origin"
  • リモートで削除されているが、ローカルでトラッキングブランチとして残っているものは"Stale tracking branch"と表示される

  • 削除する

git remote prune origin
  • "--dry-run"オプションで、削除対象のレポートだけして実際にはしない
git remote prune origin --dry-run

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?