how to revert a push commit in git code example
Example 1: git commit and push command
git: git add . git commit -m "$m" git push -u origin master
Example 2: revert last push to server
git reset --hard HEAD@{1}
git push -f
Example 3: undo last commit pushed
git reset # commitId
# Exemple
git reset 5310517
Example 4: how to git commit and push
git config --global user.email "[email protected]"
git config --global user.name "eu20papar"