I mistakenly added files to Git using the command:
git add myfile.txt
I have not yet run git commit. Is there a way to undo this, so these files won't be included in the commit?
git commit
You can undo git add before commit with
git add
git reset <file>
which will remove it from the current index (the "about to be committed" list) without changing anything else.