gitΒΆ
git config --global user.email "user@email.com"
git config --global user.name "username"
UsageΒΆ
Undo and re-push:
git fetch --all
git reset --hard <commit-hash>
# git reset --hard HEAD~1
git push --force origin <branch>
git config --global user.email "user@email.com"
git config --global user.name "username"
Undo and re-push:
git fetch --all
git reset --hard <commit-hash>
# git reset --hard HEAD~1
git push --force origin <branch>