I am looking for some advise with git and push
/pull
and trying to get my head around the correct flow.
I have a Master branch hosted on codebasehg.
So locally I am working and commiting and pushing.
From the staging and production servers I just want to pull as I will never be working from these machines. Does this mean when I do a pull
it is going to ask me to merge conflicts? As really all I am looking to do from the servers are to collect the master
.
The second question is the site im working on is just about finished for stage 1. Once at this stage I will then want to create a branch. Then with the branch I want to test on staging server before merging and going to production. I hope this is right? So when creating the branch will it go to codebasehg when I do a push
from me dev? If so will I then just checkout the branch on the staging server? Once finshed and merged locally after pushing and pulling from staging server will the branch on the staging server be merged as well?
I hope this makes sense and thank you of you can advise.