Difference between revisions of "Setting up SIMC"
From HallCWiki
Jump to navigationJump to searchLine 12: | Line 12: | ||
## Go to "SSH and GPG keys" | ## Go to "SSH and GPG keys" | ||
## Click on "new ssh key" button. At terminal type "more ~/.ssh/id_rsa.pub". Copy the code and paste into github. | ## 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: | ||
+ | ##<br><code>git clone git@github.com:''GitHub-Username''/hcana.git</code><br> where ''GitHub-Username'' is the name of the account that you created. | ||
+ | ##<br><code>git clone https://github.com/''GitHub-Username''/hcana.git</code><br> where ''GitHub-Username'' is the name of the account that you created. | ||
+ | ## On cdaq machines you must use https. | ||
+ | #Do <br><code>cd hcana</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''/hcana.git (fetch)<br>origin https://github.com/''Github-UserName''/hcana.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 develop upstream git@github.com:JeffersonLab/hcana</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. | ||
+ | #For hcana, it is important to branch off the "develop" branch and NOT the "master" branch. So immediately do <br><code>git checkout develop</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 "develop" branch with the command: <br><code>git checkout -b featurebranchname</code> |
Revision as of 09:25, 12 February 2025
Setting up SIMC
Github suff
- Setup a github.com account
- Fork the simc_gfortran repository: https://github.com/JeffersonLab/simc_gfortran
- Optionally select Watch to be notified of changes to simc_gfortran.
- Setup ssh keys on ifarm or other machines
- Generate ssh key if you do not have one.
- ssh-keygen -t rsa ( when prompted for pass phrase just hit return )
- ssh-add ~/.ssh/id_rsa
- Put ssh public key on Github
- Open the "Settings" in the pull down menu on the extreme right.
- Go to "SSH and GPG keys"
- 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:
git clone git@github.com:GitHub-Username/hcana.git
where GitHub-Username is the name of the account that you created.git clone https://github.com/GitHub-Username/hcana.git
where GitHub-Username is the name of the account that you created.- On cdaq machines you must use https.
- Do
cd hcana
- Do
git remote -v
and it should return (https://github.com/ could be git@github.com:)
origin https://github.com/Github-UserName/hcana.git (fetch)
origin https://github.com/Github-UserName/hcana.git (pull) - Execute the command
git remote add --track develop upstream https://github.com/JeffersonLab/hcana
orgit remote add --track develop upstream git@github.com:JeffersonLab/hcana
This will be needed to keep your forked copy and local machine copy of the code up to date with the main development repository. - For hcana, it is important to branch off the "develop" branch and NOT the "master" branch. So immediately do
git checkout develop
- To help keep a clean history and make it easier to update the main Jefferson Lab repository, please create your private branch from the "develop" branch with the command:
git checkout -b featurebranchname