Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Add Source to GitHub

Add Source to GitHub

Overview

This page provides detailed instructions on adding EP source to GitHub or a similar Git hosting service.

Git configuration

The following Git configuration is required:

  1. Your email and password are correctly configured.
  2. You are able to push changes to the upstream repository.
  3. Line endings are converted to LF on input. The command to configure this is:
    git config --global core.autocrlf input

Steps

  1. Open a bash shell and cd to the directory containing the projects you will commit to source control. It should contain commerce-engine, cmclient, devops and extensions folders. For EP-for-AMC-Fall-2014-SP2 release package, it will also contain ep-aem-commerce and geometrixx-demo folder.
    Tip:

    On Windows you can use Git Bash, MinGW or Cygwin as your Bash shell.

  2. Assign execute permissions to all scripts in devops/scripts.
    chmod u+x devops/scripts/*.sh
  3. For each project:
    1. Create a new empty repository in GitHub and copy the repository's HTTPS clone URL.
    2. Run the following commands:
      # Script MUST be run from the root folder for each project 
      cd <project-root-folder> 
      ./../devops/scripts/add-project-to-git-repository.sh <repository-https-clone-url>
    3. Navigate to the GitHub settings page and set develop as the default branch.
    Tip: Re-running the script

    If you have made a mistake and the script failed, you need to reset the remote origin URL before re-running the script. The command to do this is:

    git remote remove origin