I am reading about GIT branching strategy that involves master, develop, hotfix, release, feature.
We are 5 developers working on a python website. Following is branching strategy I want to use on GitHub.
- Production code is in the master branch.
- I create a Task branch off the master branch.
- I work on the Task branch, and before pushing the code to git I switch to master and pull the code, switch to Task and merge with master. This is so that my code is in sync with remote master
- Push code
- Raise PR from Task branch into master branch.
What happens if master has got additional code that I am missing in my Task branch and I forget to run step 3?