How to add modification to a submitted change in Git?

This question already has an answer here:

  • How do I push amended commit to the remote Git repository? 13 answers

  • What you are looking for is probably amend it lets you add your changes to a commit you already made.

    The question is have you pushed to a remote or did you just commit? If you only commited ammend is fine but if the commit has been pushed to a remote repository you will have to make a new commit for your changes.

    You could push the amended commit to remote but you shouldn't...

    链接地址: http://www.djcxy.com/p/48920.html

    上一篇: 如何从远程分支永久删除少量提交

    下一篇: 如何在Git中添加对提交的更改的修改?