Git Training
The training has an introduction part, which you can either follow along or just watch and listen. Every module is aimed at supplying theory and knowledge. Most modules also have an exercise linked.
Every module and also the exercises are stand alone. They all start either with a fresh repository or provide a setup script. The setup scripts are part of git.zip
Setup
Download and extract git.zip. The password is "gittraining".
Open a terminal where you can use git in and navigate to the place where you extracted this archive. Then run sh ./check.sh. You should see something similar to
Fixing permissions...
Verifying git setup...
Creating repository...
Initialized empty Git repository in /home/martin/src/git_training/test/.git/
Your default branch name is: main
Checking if we can commit...
[main (root-commit) 7dd6910] test
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 testfile
Cleaning up...
If you see errors, your git setup is not working.
You can find all script for the "Modules" part in modules
and all for the exercises in exercises
, use cd directory
to swich into them.
If you want to run a script, do it like for check.sh
and prend it with ./
to signal the shell to use it from the directory you are at the moment.
Cheat Sheet
You can find a small cheat sheet of commands used in the training here
Modules
- Basic configuration
- Repository Basics
- Working in a repository
- Working with branches
- Working with remotes
- Debugging with git
Exercises
- Working in a repository
- Inspecting and changing history
- Working with branches
- Working with a remote
- Using blame and bisect
Questions?
Most likely you will be in a training session. In this case, just ask them. If not, feel free to contact me. You can find my details on my blog