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

后端 未结 16 1656
深忆病人
深忆病人 2020-11-22 04:42

When I\'ve worked a bit with my source code, I did my usual thing commit and then I pushed to a remote repository. But then I noticed I forgot to organize my imports in the

16条回答
  •  没有蜡笔的小新
    2020-11-22 04:46

    If you are using Visual Studio Code, you can try this extension to make it easier.

    https://marketplace.visualstudio.com/items?itemName=cimdalli.git-commit-amend-push-force

    As you can understand from its name, it executes commands consecutively

    • git commit --amend
    • git push --force

提交回复
热议问题