I have did git commit <file>
for a file and also submitted that file with git submit <file>
.
but now i want to un-commit the changes.
i have also tried git reset HEAD~1 <file>
followed by git checkout -- <file>
but when i do git update
it again comes as commited file.
can some one help me how can i un-commit my changes?
1 Answer
Look at the various scenarios listed in the book for rewriting history:
If you need more assistance, please write what you wish to achieve.
git revert <commit>
?git submit
?git update
is also unknown to me.git revert
and publish it again to avoid any troubles. Take extreme care when you attempt to rewrite the commit history.