You can make amendments to your comments using the below command
git commit –amend
If you have just committed a file and you want to make some changes to the same commit you can do that using amend in GIT
You can remove the files added to the staging area using the reset command
git reset <filename>
You can remove a file added to the staging area using the reset command.
Unmodifying a file can be done by checking out the file from the repository
git checkout — <file_name>
You can checkout the file from the repository directly using this command, note the changes made to the file will be lost after running this command.