My issue is I have changed a file eg: README, added a new line \'this for my testing line\' and saved the file, then I issued the following commands
gi
Use --soft instead of --hard flag:
--soft
--hard
git reset --soft HEAD^