Drupal Site with Existing Data, properly setting up Git Repo on server to push local code -


i had issues pushing updates via ftploy, decided set git on client's dedicated host. installation went beautifully. created --bare repo in /public_html directory drupal files stored. set repo remote, , attempted push new updates it. unfortunately, did not work. appears if sent fine, not case. check site, , no changes apparent.

could issue configuration, or missing steps in process set repo , have recognize local changes?

because of --bare option, repository created handles history no actual source code. pushes update history, changes never reflected on source files: git isn't aware of them, uses .git folder.

bare repositories used share changes source code, see this article more information.

to deploy site git, delete .git folder created , drop --bare option when re-creating repository. may want local backup first.

one last tip : .git folder git uses internally should not accessible web, might have prevent this. have @ this question solutions.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -