. Run git reset name_of_file to un stage the file and keep it. In case you want to also remove the given file from the repository (after pushing), use git rm --cached name_of_file.