Skip to main content
added 2 characters in body
Source Link
slisnychyi
  • 1.9k
  • 3
  • 26
  • 33

simple solution:

git reset --soft HEAD~5

git commit -m "commit message"

git push origin branch --force-with-lease

simple solution:

git reset --soft HEAD~5

git commit -m "commit message"

git push origin branch force-with-lease

simple solution:

git reset --soft HEAD~5

git commit -m "commit message"

git push origin branch --force-with-lease

Source Link
slisnychyi
  • 1.9k
  • 3
  • 26
  • 33

simple solution:

git reset --soft HEAD~5

git commit -m "commit message"

git push origin branch force-with-lease