1
1

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.

Gitエラー:there are still refs under

Posted at

Gitエラー対処時のメモ

参考: http://otiai10.hatenablog.com/entry/2013/12/14/123117

##エラー内容##
there are still refs under 'refs/remotes/origin/release'

##原因##

origin/release/old

origin/release
のような旧サブフォルダ名が新ブランチ名になったときに発生?

[Aさん]ブランチを作成: origin/release/old
[Bさん]ブランチをチェックアウト: origin/release/old
[Aさん]ブランチを削除: origin/release/old
[Aさん]ブランチを作成: origin/release
[Bさん]pullでエラー

 # git pull
 error: there are still refs under 'refs/remotes/origin/release'

##対応##

リモートの追跡を削除してからpull

 # git branch -d -r origin/release/old
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?