GitGitHub Beginner Free course, 2 parts
Git for deployers
Git from the first commit to branches, remotes and the workflow that triggers a deploy.
For developers who copy files to servers today.
- 10 lessons
- 2h 35m total time
- 2 hands-on labs
- 3 diagrams
- 10 quizzes
Course complete
You finished Git for deployers
All 10 lessons done on . Share it, print the certificate, or start the next course below.
Levelrail Learn Certificate of completion Completed Git for deployers on Levelrail Learn 10 lessons, 2h 35m of guided practice levelrail.com/learn/courses/git-for-deployers/
What you will be able to do
- Commit, branch and merge with confidence
- Undo mistakes without losing work
- Use remotes and deploy keys
- Ship from a pull request
Syllabus
10 lessons in 2 parts, 2h 35m in total
Part 1
Lessons 1 to 5
5 lessons, 1h 10m 0/5- What is Git and why servers use it for deploys Up next Done Git is a version control system that records every change to your files as a commit, so a server can fetch an exact version of your code and you can return to any earlier one. 10 min Beginner Quiz
- Install and configure Git on Ubuntu or Debian Up next Done Install Git with sudo apt install git, then run git config --global to set your name, email, default branch and editor so every commit is labelled correctly. 10 min Beginner Quiz
- Your first Git repository: init, add, commit and log Up next Done A Git repository starts with git init, and you save work by staging files with git add and recording them with git commit, then review it with git log and git diff. 15 min Beginner Lab Diagram Quiz
- Undo mistakes in Git: restore, amend, reset, revert, reflog Up next Done To undo something in Git, pick the tool by where the mistake is: restore for files, commit --amend for the last commit, reset for local history, revert for shared history and reflog to recover. 20 min Intermediate Quiz
- Git branches and merging: create, switch, merge, delete Up next Done A Git branch is a movable label on a commit, so you can build a change on its own line of history and then combine it into main with git merge. 15 min Beginner Lab Diagram Quiz
Part 2
Lessons 6 to 10
5 lessons, 1h 25m 0/5- Resolve Git merge conflicts step by step Up next Done A merge conflict happens when two branches changed the same lines, so you edit the marked file to keep the right text, run git add, and finish with git commit. 15 min Intermediate Quiz
- Git remotes: push, pull and fetch explained Up next Done A Git remote is a named URL of another copy of the repository, and you send commits to it with git push and bring new ones back with git fetch or git pull. 15 min Beginner Diagram Quiz
- SSH keys and deploy keys for Git on a server Up next Done A deploy key is an SSH key pair whose public half is added to one repository as read-only, so a server can clone and pull that repository without your personal account. 20 min Intermediate Quiz
- Gitignore and keeping secrets out of Git Up next Done A .gitignore file lists patterns Git should not track, and secrets such as .env files belong there, because anything committed stays in history even after you delete it. 15 min Beginner Quiz
- A Git workflow that triggers a deploy Up next Done A Git deploy workflow moves a change through a feature branch, pull request and review into main, where CI tests it and a deploy ships it, with tags marking releases you can redeploy. 20 min Intermediate Quiz