Setting up project repository for source control

After you set up your initial developer toolkit environment, you can set up your project repository for source control.

Before you begin

Note: The SDK for Sterling™ Order Management System Software provides configuration and examples for Git. You can use a source control system of your choice, for example SVN.
Ensure that you are connected to a Git-based source code repository and can check code into the repository and extract code from the repository.

About this task

To set up your project repository for source control.

Procedure

  1. Make sure your project directory containing your customization files conform to the project root directory structure described in the Importing custom extensions topic.
  2. In a command line utility, go to the directory for your workspace and run the following commands:
    • git init - To create a new blank Git repository
    • git commit -a -m comment - To create the initial repository, where comments provides some details about the commit. For instance, the following command indicates the commit is an initial commit:

      git commit -a -m "initial commit"

    • git remote add origin repository_location - To add the remote location of your repository if needed.
    • git push -u origin master - To send the workspace to the remote location, if needed.