Checking out the developer version of Continuity from Git for Linux / Mac

Linux / Mac

Checking Out Continuity

  1. If you have not already done so, download and install Git. You will also need autoconf

    • If you’re on a Debian-based distribution like Ubuntu, try apt-get:
      sudo apt-get install git-all
      sudo apt-get install autoconf
      
      
    • If you’re using Mac OSX, try brew (make sure you have Homebrew installed):
      sudo brew install git-all
      sudo brew install autoconf
  2. Send an e-mail to Connie Du (c2du@ucsd.edu), cc-ing Dr. McCulloch (amcculloch@ucsd.edu) on the email, requesting to have access to the Continuity Git repository.

  3. Wait until you have received an e-mail stating that access has been granted. This is not an automated process, this can take some time.
  4. Next, make sure you have Git LFS installed. (Rocce cluster instructions for Git LFS)
  5. You now have access to the cmrg git repository which will allow you clone the source. Use this command to copy the code onto into your current directory:
    git lfs clone https://github.com/cmrglab/Continuity.git
    

     

  6. Then you just need to do some setup/configuring commands
    cd Continuity
    ./updatemgl
    sh setup
    source mglinit
    

     

  7. Lastly, the first time you start Continuity you need to move some files into place and you need to include the –update-binaries command to do that:
    ./continuity --update-binaries
    

     

  8. Your configuration of the master branch is now complete, to work with other branches see below.

Obtaining branches other than master

  1. When you first clone the repository you only get the master branch. To obtain others you must edit the .git/config file within the repository. Replace this line:

    fetch = +refs/heads/master:refs/remotes/origin/master
    

    with:

    fetch = +refs/heads/*:refs/remotes/origin/*
    

     

  2. Fetch the most recent remote branches with :
    git fetch
    

     

  3. Checkout your desired branch with:
    git checkout branch_name
    

     

Rocce Cluster instructions

  1. Export Git LFS to your PATH variable :
    export PATH=/share/apps/git/2.13.7/bin:/share/apps/git-lfs/2.5.0/bin:$PATH
  2. Install Git LFS :
    git lfs install