Skip to content

Cloning encrypted repo on another computer, how-to question #218

Answered by alerque
boelenz asked this question in Q&A
Discussion options

You must be logged in to vote

The first line of your .gitattributes file looks off, I think you need a file name pattern. Usually encrypting everything in a repository is not a good idea, but if you're sure all the files are secret then at least * or something for a pattern should work. Then you need to make sure that it doesn't match .gitattributes file. I forget the match priority but you'll want to check that it doesn't encrypt the attributes file too ;-)

After that, your issue is probably with where you are putting "the key". Does gpg --list-secret-keys show your private keys correctly? Are you able to use GPG for other things on the new machine?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@boelenz
Comment options

Answer selected by boelenz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants