Git is a popular version control system that allows you to easily track code changes and collaborate on projects with any number of people. In this workshop, we will go over the basics of version control, Git, and how to use GitLab to collaborate with other developers.
We won't be working on actual code in this class so there is no need for you to know any particular programming language. We will be using the command line to change directories, list directory contents, and using git from the command line throughout the class, so it is important that you feel comfortable with that. You should bring your own computer to class as we will be installing software and you will need administrator privileges.
- A laptop (Mac, PC, or Linux are all okay).
- A modern web browser - either Chrome or Firefox with Firebug installed.
- A code editor. We recommend Visual Studio Code (free; available for Mac, PC, and Linux).
In this workshop we'll cover:
- the basic concepts of git version control
- installing git
- git commands to track changes to a small project
- set up a free gitlab account
- create an SSH Key
- the basics of collaborating on projects with other developers
Go to the following URL: https://women-who-code.gitlab.io/intro-to-git-and-gitlab
Use the 'Instructor Notes' located in the Wiki of this project to walk through the exercises.
This course was developed using reveal.js.
Some reveal.js features, like external Markdown and speaker notes, require that presentations run from a local web server. The following instructions will set up such a server as well as all of the development tasks needed to make edits to the reveal.js source code.
-
Install Node.js (4.0.0 or later)
-
Clone the reveal.js repository
$ git clone [email protected]:sarrahvesselov/intro-to-git-gitlab.git
- Navigate to the repo you just cloned
$ cd intro-to-git-and-gitlab
- Navigate to the public folder inside the repo
$ cd public
- Install dependencies
$ npm install
- Serve the presentation and monitor source files for changes
$ npm start
- Open http://localhost:8000 to view your presentation
You can change the port by using npm start -- --port=8001.
Please clone this project into your own 'Women Who Code' group before holding your class. This will allow you to add personalized slides and to update Instructor Notes if you wish.
Reveal JS support instructor notes (you will see them in the index file.) Documentation on how to edit these notes can be found here: https://github.com/hakimel/reveal.js#speaker-notes
Once running, you can open the slides in presentation mode, allowing you to see the notes. Simply press the s
key to open the slide notes.