Creating a remote repo for the OCM Drupal code.
- Create a blank central repo on the dev server:
git init --bare ocm.git - Locally, make sure that the Drupal is controlled by git. Do
git initif necessary. - Do
git add *andgit commit -m "initial commit"to get the base code into git. - Add a remote to your local repo with
git remote add ocm-dev path/to/your/central/git/repo - Create and checkout a development branch on your local machine with
git checkout -b develop - Push the new branch to the remote with
git push ocm-dev develop - Deploy the code to the webserver with
git clone --branch develop path/to/your/central/git/repo ocm-dev
Based on information gleaned from Building a Drupal site with Git at https://www.drupal.org/node/803746