I've the following situation:
One internal server (server1) with the main repo with 2 branches master and dev, four developers with 3 clones of the git working with branches of the dev
Rules:
- the server1/master cannot be touched or merged by the developers
- every developers needs to update version of server1/master before work and before push
I think about that procedure: The developer 1 has to do: after git clone and maybe git pull, every day will be something like:
git checkout dev
git pull (for synch every modification from other developers)
git checkout -b myModification (for making a branch from dev)
after making modification add and commit:
git checkout dev
git merge --no-ff myModification
*git pull (for fetching modification in dev made in the meanwhile from others developers)
after testing on dev branch:
git push origin dev
I would like to know
- what is the best workflow definition for my problem
- what are the git command for every developers
- If the git pull is correct or is better to have git rebase -i dev or change the position of this command
thank you in advance