AGWA / AGWA/git-crypt

git-crypt unlock not working

未關閉
#146 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
9.9k
分支
544
PR 合併指標
30 天內沒有已合併 PR

描述

Hi,

I try to decrypt a git-crypted file outside of git. We use symmetric en-/decryption with different keys.
.gitattributes contains:
```
*dev_test.properties.enc filter=git-crypt-dev_test diff=git-crypt-dev_test
*dev_live.properties.enc filter=git-crypt-dev_live diff=git-crypt-dev_live
*prod_live.properties.enc filter=git-crypt-prod_live diff=git-crypt-prod_live
```
Folder looks like:
```
|-.gitattributes
|-application_credential_dev_live.properties.enc
|-application_credential_dev_test.properties.enc
|-application_credential_prod_live.properties.enc
```
I try to decrypt lets say the dev_test file with

```
git init
git-crypt unlock dev_test.key
```

As result I get:
```
fatal: You are on a branch yet to be born
Error: 'git checkout' failed
git-crypt has been set up but existing encrypted files have not been decrypted
```

I've executed `openssl dgst -sha256 .git/git-crypt/keys/dev_test` on both sides, the sh256 is the same ... do you've any idea?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。