deployment - First GIT add of old system -


i have old asp 3.0 system want move git repo. complete version of system production system, that's want start with.

should make copy of system , push copy git, erase old system , checkout new production system git? or there other way haven't thought of better?

create git repository production system (git init .), add files (git add .) , commit (git commit -am "initial commit live") , git checkout -b live call branch live (and master), add bare repos origin (git add remote origin git://server/new_bare_repo.git) , push there (git push origin master ; git push origin live).

this "live" branch reflects in production, , master branch use basis development.

from onwards, use new bare repo development, on master branch.

whenever want make live, make changes (merge, cherry pick, whatever) on live branch master branch or other feature branches, , push new live branch "new bare repo's" live branch. go on git repo on production , git pull --rebase origin live, , git push origin live.

your bare repo have:

  • a "live" branch pointing whatever deployed
  • a "master" branch containing development

your production checked out version have:

  • whatever wanted live

hope helps


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -