How to correctly remove .git/refs/changes/*
My team uses gerrit for handling revision. For each revision, gerrit creates a branch-like thing in the git repository, that looks like .git/refs/changes/1/2/3
.
Now 开发者_如何学JAVAwe had to rewrite our repository's history (git filter-branch), and theses changes refer to commits in an 'alternate timeline', and should be removed.
Just deleting files beneath .git/refs/*
seems to be discouraged by the git manual.
What is the correct way?
Yes you can remove the .git/refs/changes
and you will also have to rewrite the db of Gerrit. Look below for more details:
http://www.mailinglistarchive.com/html/repo-discuss@googlegroups.com/2010-05/msg00014.html
精彩评论