merge - Git - Merging a non-git folder with a similar folder under git -
i can't seem find situation & hoping me i'm not entirely fluent git yet loving it.
we have dev server under git control displaying our dev branch. have master branch in addition to dev branch has stable version of website.
then, on our production server have our stable site due how things played out, not under git version control, have manually updated files needed. stable master branch files similar manually managed production set of files.
we'd production server under git control, displaying master branch, dev server reflects dev branch.
however, i'm not sure how go setting git repo on production server , somehow merging master branch. please provide pointers, hints or direction?
the thing found online involved along lines of setting 2 repos (for total of 3), 1 being parent of other 2 , somehow bringing them way. hoping different solution (or @ least "ya, that's correct" don't go down stupid rabbit hole. ( not sure if merging 2 folders using git might sort of start?? lack of responses made hard see if right thing pursue )
thanks all.
if got correctly site on production server based on master branch (or other commit in git repo) not same, i.e. manual changes in , don't want loose manual changes. if case, here in cases this:
- check out or clone master branch (or commit production servers data based on) somewhere.
- you have clean working copy production servers "base".
- copy data production server clean working copy.
- use
git diffexamine changes , commit relevant ones. - if base checked out in step 1 not master, can merge manual changes using
git merge mastermaster.
i hope understood correctly , helps getting in right direction…
Comments
Post a Comment