Getting familiar with Git and GitHub

In this exercise we're just going to go over the basics of git.

(N.B: it is good practice for the commit messages to be written in the form of tasks (ex: add file to folder) so that it is easier to understand each commit's intended purpose by all the other people working with the same repository)

Getting Started

In order to start working on the repository, we must first initialize our working directory and clone our repository inside of it:

  1. Create your working directory
  2. Using git and github clone the repository inside of the newly created working directory
  3. Run gitruler to initialize the exercise

Our first commits

  1. Create 2 .txt files, file4 and file5, in the files folder and commit them with the message "add file4 and file5"
  2. Create 1 .txt file, file6, in misc folder and commit that with the message "add file6"

Manipulating the files

We want to reorganize the workspace by moving some files around and deleting the ones we don't need anymore:

  1. Using git move file3 from misc to files
  2. Commit the move with the message "move file3 to files"
  3. Move file1 and file2 to misc
  4. Commit this move with message "swap file1 and file2 with file3"
  5. Remove file7 from files and commit with the message "remove file7"