@shyann
To delete the latest git commit in Bitbucket, you can follow these steps:
1
|
git reset --hard HEAD~1 |
This command will remove the latest commit from the history.
1
|
git push origin HEAD --force |
This will update the repository in Bitbucket and remove the latest commit.
Please note that using git reset --hard
can be dangerous as it will delete all changes made in the latest commit. Make sure to backup any important changes before using this command.