/version_control_examples

This is a repo demonstrating version control for codes with git, and for env with docker compose

Primary LanguageR

Version Control for Researchers in Social Science

This repo displays some example and common use cases that a research may encounter in her daily life, and how version control tools such as git can help. Furthermore, although containerization is not always considered a version control tool, it can be used to be a good dependency manager, as you can always dispose a container and create another one. The concept of containerization matches the spirit of reproducibility, which is one of the most important research essence.

Topics

The following topic will be covered:

  • version control with git
  • dependency control with renv or pyenv
  • dependency control with Docker

Preparation

Here are some tools/softwares you need to pre-install before you proceed with the examples in this repo.

  1. git
  2. Docker

Please visit the websites accordingly for detailed information about the installation.

Remark

  • If you're using Windows, you may want to use WSL for a smoother experience with Docker

  • If you're using MacOS, make sure you've installed Xcode and the corresponding command line tool.

  • For people who are afraid of CLI (command line interface), GitHub also offers a GUI application, GitHub Desktop, which is worth trying.