Introduction to Git
Understand why we use git, the history of the tool, and basic git concepts you’ll see in Google searches.
This page describes the content and target audience of an introductory git workshop. So far, 39 public servants have rated these workshops an average 4.38/5.
- Have written some computer code before.
- Know at least a few commands for the terminal/console/commandline.
- Are not comfortable with git concepts like merge, commit, branch, or hash.
- Understand answers on stack overflow about git.
- Know how to Google git questions.
- Understand why we use git.
- Get minimal hands on experience with git init and merging.
However we will not memorize git commands, or look at long lists of git commands without thinking.
- History of git and why it exists
- Vocabulary: hash, file delta, working directory, staging area, local repository, remote repository, branch, tag, label, hook, squash, fork
- Commands: init, status, add, commit, checkout, clone, pull, push, diff
- config, gitignore, README.md
- Differences between git, GitHub, GitLab, and our different GitLab deployments.
- Example of a real CMC merge request among strangers.
- Exercise 1: make your own new personal repo.
- Exercise 2: different types of merging, merge conflicts, meld (easy to hard)
- Dangerous destructive commands, when to use caution.