Branching

When a stream is cloned from Dimensions CM it becomes a branch in your local git repository. New local branches pushed back into Dimensions CM become new streams. For example, assume you have the stream QLARIUS:MAINLINE with another stream branched from it, QLARIUS:FEATURE1.

 

 

  1. Clone these streams into your local git repository using this command:
  2. git clone dimensions://servername/cm_typical@dim14/qlarius/mainline/* .
  3. The master branch in Git contains the files from the stream QLARIUS:MAINLINE stream. There is also a branch called feature1 containing the files from QLARIUS:FEATURE1. You can work on these branches in Git just like any other Git repository. For example, switch to the feature1 branch:
    git checkout feature1
  4. Make code changes, such as edit files and add new files, and commit them locally:
  5. git commit -m “made some local changes”
  6. Push that commit to Dimensions CM into the QLARIUS:FEATURE1 stream:
  7. git push