PIK GitLab tutorial

orientation internal support tutorial

A brief tutorial on how to set up and use GitLab at PIK for collaboration and version control.

Peter-Paul Pichler https://www.pik-potsdam.de/members/pichler (Social Metabolism & Impacts, Potsdam Institute for Climate Impact Research)https://www.pik-potsdam.de
03-12-2021

Git is a web-based version control system. PIK runs its own GitLab instance. In order to use the PIK gitlab, you have to login once with your PIK username and password to activate your account. After that you need to copy your public key to gitlab and you are ready to go.

If you want help with setting up your PIK gitlab, please have a look at the gitlab page on the intranet and these slides by Ciaron Linstead.

For help on how to use git, especially with R and RStudio, please have a look here.

Useful tips

git first

When you want to use git with an RStudio project, it is easiest to create the git first. Simply go GitLab and create a repository. After that create a new project and select

remember to pull

If you are working on a project with other people, you need to pull all their changes before you push your own. This is a common source of confusion. If your local repository is behind (because somebody changed someting on gitlab) git will refuse to push your newly committed changes. So this is the most important thing to remember:

git+pull

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Pichler (2021, March 12). FL Metab methods blog: PIK GitLab tutorial. Retrieved from http://www.pik-potsdam.de/~pichler/metab/blog/posts/2021-03-12-pik-gitlab-tutorial/

BibTeX citation

@misc{pichler2021pik,
  author = {Pichler, Peter-Paul},
  title = {FL Metab methods blog: PIK GitLab tutorial},
  url = {http://www.pik-potsdam.de/~pichler/metab/blog/posts/2021-03-12-pik-gitlab-tutorial/},
  year = {2021}
}