I'm new to GIT and Branches. I've two problems with GIT
There are two
branches
Dev and Master, whenever we've done any modifications in Dev we aresyncing
them with Masterbranch
(if required). Some time we are getting error while doingcommit
the changes in Dev, by usingpull
option we've resolved the error. While doingpull
,GIT
automatically merging my modifications into masterbranch
. WhileGIT
is configured with Jenkins the changes are going to Production without any approval from business.Some times, other team peoples just copying other HTML pages themselves directly into prod folder(Which is also a part of GIT). So, whenever we
merge
the code with dev, the local files are replacing prod files.
Could you please anyone help on this. I'm struggling a lot since 1 week.
Thanks in advance!!