Why GIT reports “fatal: This operation must be run in a work tree” when exporting from bare repo?
问题 if I export from bare GIT repository using git archive command I get error message: "fatal: This operation must be run in a work tree", altough the export passes properly. So my question is: Is there any issue when exporting from bare repository? I checked the exported archive and it looks alright. 回答1: I don't actually get that warning - I'm fairly certain it was a bug which was resolved sometime after the version you're using. I can't tell exactly when, because I haven't even managed to