To get the QuaLiKiz code
Choose the name for the directory, such as… QuaLiKiz
git clone [email protected]:qualikiz-group/QuaLiKiz.git QuaLiKiz
You will be asked for your username and password as used to connect on QuaLiKiz GitLab.
To make life easier (no username password verification needed for access), you can upload a public SSH onto your GitHub account, in unix type "ssh-keygen", type enter enter enter until it's finished. Then, copy the text written in .ssh/id_rsa.pub into "settings”, found when right clicking on your profile on the top right corner of your GitLab screen then in the menu on the left part of your screen you will find “SSH keys". This key should look like: ssh-rsa areallyveryverylongstringwithlotsoflettersandnumbersandsymbols== [email protected] When you copy paste, make sure that the really long string doesn't contain any newlines as a byproduct from the copy-paste.
Now to get the matlab tools and python tools, which are developed in 2 other GIT, you have to do this:
**cd QuaLiKiz git submodule init git submodule update **
So Note that you now have 3 GIT: QuaLiKiz directory for the QuaLiKiz GIT and also in the QuaLiKiz-matlabtools directory for the matlabtools GIT, idem for pythontools
To create a developer branch, here the chosen name is Clarisse_matlab
git checkout -b Clarisse_matlab
to see if some files are different from the previous pulled version:
**git status ** it will tell you what has been modified
to commit all the modified files
git commit -a
to commit only one modified file
git commit "README.md" or whatever your file name is
A window will pop up and you will be asked to add a comment about your modification, then save then and close the page.
to send your modified files to this shared branch so that everyone can see, for the 1st time:
git push --set-upstream origin Clarisse_matlab
afterwards this is enough:
If someone else made some changes in the same branch and to get updated
to kown how your git is configured:
git config --list
to configure git the way you prefer, (Note here that you will need to do this both in the main QuaLiKiz directory for the QuaLiKiz GIT and also in the QuaLiKiz-matlabtools directory for the matlabtools GIT, idem for pythontools) for example for me to use nedit as an editor
git config --global core.editor nedit
to add your name and e-mail to your commits
git config --global user.email [email protected] git config --global user.name "Clarisse"