Difference between revisions of "Setting up SIMC"

From HallCWiki
Jump to navigationJump to search
Line 18: Line 18:
 
#Do <br><code>cd simc_gfortran</code>
 
#Do <br><code>cd simc_gfortran</code>
 
#Do <br><code>git remote -v</code> and it should return (''https://github.com/ could be git@github.com:'')<br>origin https://github.com/''Github-UserName''/simc_gfortran.git (fetch)<br>origin https://github.com/''Github-UserName''/simc_gfortran.git (pull)
 
#Do <br><code>git remote -v</code> and it should return (''https://github.com/ could be git@github.com:'')<br>origin https://github.com/''Github-UserName''/simc_gfortran.git (fetch)<br>origin https://github.com/''Github-UserName''/simc_gfortran.git (pull)
#Execute the command<br><code>git remote add --track develop upstream https://github.com/JeffersonLab/hcana</code><br> or <br><code>git remote add --track master upstream git@github.com:JeffersonLab/simc_gfortran</code><br> This will be needed to keep your forked copy and local machine copy of the code up to date with the main development repository.
+
#Execute the command<br><code>git remote add --track master upstream https://github.com/JeffersonLab/hcana</code><br> or <br><code>git remote add --track master upstream git@github.com:JeffersonLab/simc_gfortran</code><br> This will be needed to keep your forked copy and local machine copy of the code up to date with the main development repository.
 
#To help keep a clean history and make it easier to update the main Jefferson Lab repository, please create your private branch from the "master" branch with the command: <br><code>git checkout -b featurebranchname</code>
 
#To help keep a clean history and make it easier to update the main Jefferson Lab repository, please create your private branch from the "master" branch with the command: <br><code>git checkout -b featurebranchname</code>

Revision as of 09:28, 12 February 2025

Setting up SIMC

Github suff

  1. Generate ssh key if you do not have one.
    1. ssh-keygen -t rsa ( when prompted for pass phrase just hit return )
    2. ssh-add ~/.ssh/id_rsa
  2. Put ssh public key on Github
    1. Open the "Settings" in the pull down menu on the extreme right.
    2. Go to "SSH and GPG keys"
    3. Click on "new ssh key" button. At terminal type "more ~/.ssh/id_rsa.pub". Copy the code and paste into github.
  • On the computer that you plan to run and develop the analyzer, type either:

  1. git clone git@github.com:GitHub-Username/simc_gfortran.git
    where GitHub-Username is the name of the account that you created.

  2. git clone https://github.com/GitHub-Username/simc_gfortran.git
    where GitHub-Username is the name of the account that you created.
  3. On cdaq machines you must use https.
  4. Do
    cd simc_gfortran
  5. Do
    git remote -v and it should return (https://github.com/ could be git@github.com:)
    origin https://github.com/Github-UserName/simc_gfortran.git (fetch)
    origin https://github.com/Github-UserName/simc_gfortran.git (pull)
  6. Execute the command
    git remote add --track master upstream https://github.com/JeffersonLab/hcana
    or
    git remote add --track master upstream git@github.com:JeffersonLab/simc_gfortran
    This will be needed to keep your forked copy and local machine copy of the code up to date with the main development repository.
  7. To help keep a clean history and make it easier to update the main Jefferson Lab repository, please create your private branch from the "master" branch with the command:
    git checkout -b featurebranchname