git add . git commit -m "feat: xxxxxx"
git reset --soft HEAD^
This successfully revoked the commit. Note that only the commit operation is
withdrawn, and the code modification remains.
do not delete the workspace to change the code, cancel the commit, and cancel the
git add . operation. This is the
do not delete the workspace to change the code, cancel the commit, and do not cancel the
git add ..
delete workspace change code, revoke commit, revoke
git add .. After completing this operation, it is restored to the
last commit state.
git remote set-url origin remote_git_address git push
This method will only migrate the current branch to the new git.
Edit the config file and set this config:
[credential] helper = store