I am using pipelines to manage our production server repos and I pushed up some changes and I need to revert back to the previous commit. If I simply reset my local repo to the commit I want to be the head and push the changes up and trigger the pipeline, will the files on the production server be reverted back to what they were before the final push?
Hi Don,
If you run:
$ git revert <commit>
locally, and then push that change to Bitbucket, you should have the previous code in production again. Pipelines will be triggered whenever you push commits to Bitbucket (assuming your configuration allows it).
More information here if you're interested: https://www.atlassian.com/git/tutorials/learn-undoing-changes-with-bitbucket
Thanks,
Phil
Is there an example pipeline YAML that catches the pipeline errors and reverts the branch to previous state?
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.