to perform uncommit operation on my code. I did:
git reset --hard demo1.txt
but it is showing :
fatal: Cannot do hard reset with paths.
I also tried this one:
git reset --soft demo1.txt
but showing the same result:
fatal: Cannot do soft reset with paths.
I am a bit new to git. so couldn't able to figure it out. what's wrong ?
Please help me resolve it.