I am using azure devops pipeline, I need to do a code rollback in my master branch,(the code in the master branch is coming from different release, e.g release/1.0.0, release/1.0.1 and tagged.)
From what I have searched, I got the following:
1. git checkout master
2. git reset --hard <tagname>
3. git push --force origin master
Can anyone help, is this the best way of doing a rollback in a master branch ? OR not. Also, in this case the code will be overwritten with previous tags code, do we need to tag the branch again.