| ... | ... | @@ -14,18 +14,23 @@ Always login as yourself (beamline or personal computer): |
|
|
|
- set up VSC
|
|
|
|
- set up conda env / ipython config / startup etc
|
|
|
|
- clone repo to a local folder
|
|
|
|
- do not work in the working directory!
|
|
|
|
|
|
|
|
working directory = current working version of beamline code.
|
|
|
|
- **do not work in the working directory** _ie_ current working version of beamline code used to run experiments.
|
|
|
|
|
|
|
|
|
|
|
|
---------------------------------------
|
|
|
|
## Workflow for code development
|
|
|
|
|
|
|
|
|
|
|
|
``
|
|
|
|
|
|
|
|
1. git checkout main # switch to “main” branch
|
|
|
|
2. git fetch # check for changes of main repository
|
|
|
|
3. git pull # update your “main” branch to include changes from the day before
|
|
|
|
4. git checkout -b branchX # create new branch from “main” named branchX and switch to it
|
|
|
|
|
|
|
|
``
|
|
|
|
|
|
|
|
|
|
|
|
5. make changes
|
|
|
|
6. commit changes regularly; think atomique commit (vs big all together commit):
|
|
|
|
|
| ... | ... | |