AGWA / AGWA/git-crypt

git filter-branch reports unstaged changes

Đang mở
#87 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
9.9k
Fork
544
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I can't be sure this is due to git-crypt, but I've never experienced this before.
Steps to replicate:
- add a file to working dir
- add .gitattributes to select file for encryption
- add file to index
- commit
- push
- try to remove file from history (git filter-branch --tree-filter 'rm -rf path/to/file' HEAD

Expected results:
- history rewritten to never mention the said file
- file removed from origin

Actual result:
error message `Cannot rewrite branches: You have unstaged changes.`

`git status` returns

```
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
```

Anybody else experiencing this issue ?

I reiterate that I might be wrong, and this might not be due to git-crypt, but I can't think of any other cause.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.