There are some things that are great in theory. In practice, though…
It’s actually cool, too. I just need to learn how to use it. I’m talking about git.
Admittedly, I mostly hate myself for doing the “learning-by-being-frustrated” or “learning-by-running-head-first-into-problems”-approach. It seems not to be very wise to “simply start” using git. It is a *much better* idea to get to know some basic information first.
“What is git? And why do you keep using it if it’s so difficult?” you may ask.
It’s not that difficult, really. Git is a version-control system, which keeps track of things I change in documents. By saving the changes it enables me to jump back to older versions of my document if I destroyed things. (Happens. Rarely. Occasionally, maybe…)
Why use git?
Also, using git and GitHub , which stores the git-changes in an online repository, makes it easier for me to collaborate with loads of other people. Sometimes problems arise if too many people work on a google-doc at the same time and things get overwritten. If people work on the same document on a shared server at the same time they may end up with loads of documents, because there were conflicts in saving the document again. GitHub is a great way to overcome these problems.
A third point is the accessibility of code / data for other people. On GitHub I can either use a private repository, which nobody will be able to see or a public one. Public ones are great for sharing the things I’ve written digitally and accessible for everyone. Other people may have ideas on how to improve things I did and they are able to do so easily and then I can incorporate their changes if I want. Or not.
Because there is a lot of good information about git and GitHub out there, I won’t give a new introduction, but simply gather some links that might be helpful to others… and future-me. Most of those will be concerned with git and Rstudio, because that’s what I mostly use it for. Also, it may well grow over time, when I run into new problems that need solving.
- an easy introduction: https://rogerdudler.github.io/git-guide/index.html
- github-help: https://help.github.com/
- a real nice introduction to GitHub and Rstudio: http://r-bio.github.io/intro-git-rstudio/
- simple first steps using GitHub und Rstudio: https://aberdeenstudygroup.github.io/studyGroup/lessons/SG-T1-GitHubVersionControl/VersionControl/
- most important shell commands: https://gist.github.com/binde77/6950199
- a clear overview how to set up Git, GitLab and Rstudio: https://gitlab.com/HeidiSeibold/setup-git-rstudio-gitlab
(You may notice, that these links are giving very basic advice. Yes. This means I’ve had very simple problems so far, which only happened because I just went for it instead of having a look at a manual first. *head hits table* …)
- note to self, 2019-07-17: don’t confuse SSH with HTTPS… *facepalm*