Current scenario:
- Developer 1 has done some work and pushed to master and deployed.
- Developer 2 has done some work while developer 1 was working on his own tasks, pushed to master, and didn't deploy yet.
The catch: Developer 2's work would break production if deployed.
So in BitBucket, it looks kinda like this:
31 jan merge dev2 branch into master
31 Jan commit_hash_for_dev2
25 jan commit hash_for_dev2
21 jan commit hash_for_dev1 (currently what is in production)
15 jan commit hash_for_dev2
12 jan commit hash_for_dev2
Do I do:
git checkout hash_for_dev1 . (where the dot makes it the head)
git commit -m "reverting dev2 changes)
git push origin master
open a pull request
How do I bring the master branch head to dev1 latest commit and ignore everything dev2 merged ?