I'm trying to archive a folder in my git repository:
git archive --format=tar HEAD:mydir/ | tar t
However, the error message I'm getting is:
fatal: current working directory is untracked
The instructions I followed were here.
My git version is: 2.1.2
A google search only came up with 6 links, all of them a few years old and didn't look relevant.