Normally there is a Server branch dedicated to the server.
Simply put it is this.
Your Fork project
You complete the function in the local branch (may require multiple commits)
Pull original project, and merge
Push to your fork project
Pull Request to a branch of the original project
2A. Determine a commit as the code that will be officially put online, and tag it. 2B. Test the code in the test environment 2C. Push the commit to the Server branch.
GIT is distributed, there is no strong inheritance relationship, and there is no strong connection between local branches and remote branches. Your code request is merged into the remote develop branch. After the administrator agrees, the code will of course be on the remote develop branch.
In addition, there is a big problem with your process. The branch to fix the bug should be created from the master branch, and then synchronized to the master and develop branches at the same time, instead of branching off develop and then to the master branch. If you do this in the middle of develop and the bug is urgent, should you abandon the developed code or wait until develop is fully developed before fixing the bug?
Normally there is a Server branch dedicated to the server.
Simply put it is this.
Your Fork project
You complete the function in the local branch (may require multiple commits)
Pull original project, and merge
Push to your fork project
Pull Request to a branch of the original project
2A. Determine a commit as the code that will be officially put online, and tag it.
2B. Test the code in the test environment
2C. Push the commit to the Server branch.
2D.git pull
GIT is distributed, there is no strong inheritance relationship, and there is no strong connection between local branches and remote branches.
Your code request is merged into the remote develop branch. After the administrator agrees, the code will of course be on the remote develop branch.
In addition, there is a big problem with your process. The branch to fix the bug should be created from the master branch, and then synchronized to the master and develop branches at the same time, instead of branching off develop and then to the master branch. If you do this in the middle of develop and the bug is urgent, should you abandon the developed code or wait until develop is fully developed before fixing the bug?