this command didn't work for me $ git reset HEAD filename but that did work $ git reset filename