Is there a way to unstage a file in a git repository with no commits?
If you try doing a git add .
on a newly created git repo with no commits, and then try to do a git reset
you get the following from git:
Failed to resolve 'HEAD' as a valid ref.
Is there an alternative method?