AGWA / AGWA/git-crypt

git filter-branch reports unstaged changes

未关闭
#87 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
9.9k
派生
544
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。