Skip to content

Latest commit

 

History

History
85 lines (55 loc) · 3.98 KB

lab03-minimal-bash-git.md

File metadata and controls

85 lines (55 loc) · 3.98 KB

Lab 3: Bash and Git Basic Workflow

Gaston Sanchez

Learning Objectives

  • To gain familiarity with the Shell
  • Learn basic commands to navigate the file-system
  • Learn how to express file paths: absolute and relative
  • To gain familiarity with Git
  • Creating your assignments repo in Github

Before we start

This lab has two parts. The first part (30-40 mins) involves a first contact with the command line terminal (doing basic navigation of the filesystem). The second part, in turn, has to do with creating your github repository for the Stat 133 assignments.


1 Bash and the Command Line

We are going to start this lab talking about very simple bash commands. If you are a Linux user, I'm assuming that you already know how to open the command line and move around the filesystem.

Bash for Mac. For those of you using Mac, here's how to launch the so-called Terminal app:

  • Go to Applications
  • Then, go to Utilities
  • And then click on the Terminal

Bash for Windows. If you are a Windows user, I recommend using Git-Bash. Git for Windows provides a Bash emulator. If you have installed Git (for Windows), you should also have its associated Bash.

Command Line Practice

During the first 30-40 mins of the lab, work on sections 2 and 3 of the workshop The Unix Shell by Software Carpentry

  1. Files and Directories
  2. Creating Things

You may need to download a zip file to follow the lessons of the workshop, available here: http://swcarpentry.github.io/shell-novice/setup/


2 Git & Github Practice

During the second part of the lab, follow the instructions in the lab file lab03-hws-repository.md "Github repo for Stat 133".

(I'm assuming that you have Git setup in your machine).


3 Optional: Git Workshop

If you are new to Git and GitHub, you may want to work on the Version Control with Git workshop by Software Carpentry, especifically parts 3 to 7 (I'm assuming that you have Git setup in your machine).

  1. Creating a Repository
  2. Tracking Changes
  3. Exploring History
  4. Ignoring Things
  5. Remotes in GitHub

Resources