/git-for-research

using git to manage your research project

git-for-research

Solve collaboration problems and keep track of changes with version control.

Setup

No matter which option you choose, please make sure that by the time the course starts you can open a terminal application on your machine and successfully run git --help.

If you need a refresher or an introduction to using the command line then I suggest reading through learn enough command line to be dangerous.

Option 1: use a virtual machine

  • download VirtualBox
  • download the course VM, unzip it
  • start VirtualBox
  • add the vm: Machines -> Add -> path-to-folder
  • start the vm
  • the username is leon and the password is wp
  • start the terminal: press alt + ctrl + t

Option 2: install git yourself

  • download git
  • make sure you can run git from the command line

Option 3: use a remote machine

As long as git is available there :)

Course outline

  • motivation: use cases
  • git and version control
  • concepts: repos, commits, remotes, branches
  • practical session
    • create a repo
    • make changes, add and commit them
    • ignore files
    • inspect state/history
    • keep changes for later
    • remove files
    • clone a repo
    • get new changes from a remote
    • push changes to a remote
    • create a branch
    • find out who changed what
    • moving back in time
  • commands reference: log, status, diff, add, commit, stash, clone, pull, push, rebase, branch, blame
  • tools
    • desktop clients
    • remote hosting options, pros and cons
    • git extensions - for special needs
  • using git to gain insight