- BASICS
- States
- Ignore
- Remove
- Reset
- Restore
- BRANCH
- Create Branch
- Merge Branch
- Force Merge
- Undo Merge
- Php Branch
- Diff
- UNDO
-
Push Force
- Exclude Files
- GITHUB
- Hooks
- Repository
- Authentication
Reset commit after push
Soft reset will keep your modification in index, but remove it from commited.
$ git commit -a -m "test undo"
$ git push origin master
$ git reset --soft HEAD^1
If current branch behind, push again with -f (force).
$ git push -f origin master
Last update: 533 days ago