...
now you can clone with git clone git@github.com:slaclab/facet2-lattice.git
etc and successfully perform push/pull operations and so on.
Updating
...
AFS repo
The controls network machines (e.g. facet-srv01) cannot see the outside world, so another version of the repo has to be hosted on SLAC AFS.
The Lucretia repo is here:
Code Block | ||||
---|---|---|---|---|
| ||||
/afs/slac/g/cd/swe/git/repos/slac/FACET/Lucretia.git |
and the FACET-II lattice repo is here:
Code Block | ||||
---|---|---|---|---|
| ||||
/afs/slac/g/cd/swe/git/repos/slac/FACET/facet2-lattice.git |
To synchronize the AFS repo with the github repo, do the following:
Code Block | ||||
---|---|---|---|---|
| ||||
$git remote add lucretia_afs git@/afs/slac/g/cd/swe/git/repos/slac/FACET/Lucretia.git
$git remote -v
origin /afs/slac/g/cd/swe/git/repos/slac/FACET/Lucretia.git/ (fetch)
origin /afs/slac/g/cd/swe/git/repos/slac/FACET/Lucretia.git/ (push) |
and then push your changes.
You will have to toggle the remote repos to keep both github and AFS synched, but this shouldn't need to happen too often for Lucretia and facet2-lattice.
Cron job for synchronizing MatlabTNG
The MatlabTNG directory in updated frequently on the controls network, with the master repo on AFS. The github repo is synched to the AFS repo with a cron job.
Code Block | ||||
---|---|---|---|---|
| ||||
Fill in details here |