Skip to content

Intro to git lab training (topic branch workflow)

kyle-rader edited this page Oct 28, 2014 · 14 revisions

Welcome to the intro to git training lab! We will start by getting everyone into the WWU-ACM Github organization and breaking up into teams. Your team will use on the repositories name in the following fashion WWU-ACM/fa14-team#.

Step 1: Log in to Linux

If you are in Cygwin on Windows or the terminal in Mac OS then ssh <cs username>@linux.cs.wwu.edu and Linux with us.

Step 2: The WWU-ACM Github organization!

  1. Since we are using Github as our repo host you will need an account. Make one here if you don't have one already.

  2. There will be team lists on the board - go add your Github account name to a team list (3-4 to a team).

  3. You will be added to the WWU-ACM organization and placed in the Intro to Git Lab Team. This team is a Github construct and organization team members have access to repos also added to the team. (The teams on the board correspond to which repo you will be working with)

Step 3: Setting up git on your WWU CS account

  1. Start by setting up a git config file in your home directory. I have a template you can download and edit. The following will download the template and place it in ~/.gitconfig

    curl http://sw.cs.wwu.edu/~raderk/gitconfig > ~/.gitconfig

  2. Edit the following lines in that file (~/.gitconfig).

    1. Line 2: name = <Github account name>
    2. Line 3: email = <email registered with Github>
    3. Line 17: editor = <emacs | vim>
  3. Setup an RSA ssh key pair between your CS account and Github so you can interact with Github without typing your username and password every time you want to do anything. Follow this tutorial from Github exactly.

Clone this wiki locally