git reset filename.txt
Willwill remove a file named filename.txtfilename.txt
from the current index (Staging area),also called the "about“staging area”, which is where changes “about to be committed" areacommitted” are saved), without changing anything else.
git reset <file>
Basically, It removes <file>
from the staging(index) area, but it leaves thethe working directory unchanged. This un-stages a file without overwriting any changesis not overwritten).