You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi Team,
Looks like our master branch got corrupted yesterday so we need to move branch to yesterdays state.
Need your help asap , Since it is impacting our production release.
Thanks,
Manikanta A
PH: +91 90597788808
Hi Manikanta,
I feel your pain, having a corrupted master branch is no fun.
I assume the master branch is already shared via Bitbucket, or to speak in git terms, the corrupting changes are already pushed to the remote master branch?
In that case it is best to use `git revert HEAD~1..HEAD` to create a new commit that reverts the corrupting one. If you have more than one commit (for example 3) to roll back you can use `git revert HEAD~3..HEAD`. Git will one by one create new commits that revert the corrupt ones.
You can push the master branch without any problems to Bitbucket (remote) as you essentially created new commits.
Hope that helps, let me know how you go.
Best, Ulrich
// Izymes - Tools for efficient Devops teams.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please have a look at my suggestion above. You can fix this easily by using git revert. Cheers, Ulrich // Izymes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.