I am currently exporting a git repository using:
git checkout-index -f --prefix=$TARGET_PATH/ $GIT_REPO_PATH/*
Actual behavior: The export happens on all files that are added to the index.
Desired behavior: Export all files that are not only added, but committed too.
I tried to use the --stage
-option, but the stage is 0 for committed and uncommitted files (I have to say, I did not yet understand the stage numbers yet.
Any idea?