1

I have committed some changes in BitBucket. How to rollback the commit? I need to go back to how the system was 2 days ago. How can I do that?

I have tried the following command

git push -f
# or
git push --force

And I have tried the following link Delete last commit in bitbucket

But it doesn't work.

Community
  • 1
  • 1
Praveen Srinivasan
  • 1,562
  • 4
  • 25
  • 52

1 Answers1

1

Just try:

git reset --hard 'commit-name'
Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56
Ashok Joshi
  • 428
  • 4
  • 13