Programming fundamentals
Git: version your code and work as a team
Understand Git's logic and use it day to day: commits, branches, merges and collaboration.
- Duration
- 14 h · 2 days
- Level
- Beginner
- Format
- On site · Remote · Blended
- Max. group size
- 12 participants
Overview
This program teaches how to use Git methodically. Participants understand how Git stores history, create repositories, record changes, work in branches and resolve conflicts. The second day is devoted to teamwork: synchronizing with a remote repository, reviews, tags and common work organization patterns.
Who this program is for
- Developers and integrators
- Data analysts and scientists who version their scripts
- Technical project managers
Prerequisites
- Everyday use of a computer and a terminal
- Having already handled code
Learning objectives
- Explain how a distributed version control system works
- Install, configure and initialize a repository
- Record, compare and undo changes
- Create, merge and delete branches
- Resolve a merge conflict
- Collaborate with a remote repository
Detailed curriculum
4 modules · 14 h · 2 days
Day 1
Principles and first steps
30% theory · 70% practice
- Why version: the problems Git solves
- Internal model: objects, commits and references
- Installation and configuration
- Working tree, index and repository
- First repository and first commits
🛠 Hands-on workshops
First history1 h
Create a repository and build a history of several commits.
✅ Deliverable : A commented repository
Consult and fix history
50% theory · 50% practice
- Reading history and comparing versions
- Undoing changes
- Ignoring files
- Version tags
- Finding a bug by bisection
Day 2
Branches and merges
30% theory · 70% practice
- Creating and switching branches
- Merging and fast-forward
- Conflicts: understand and resolve
- Temporary branches
- Cleaning up branches
🛠 Hands-on workshops
Conflict workshop2 h
Cause and resolve conflicts in pairs.
✅ Deliverable : A clean merge history
Teamwork
30% theory · 70% practice
- Remote repositories: clone, fetch, pull, push
- Hosting platform and merge requests
- Contributing to an existing project
- Common workflow patterns
- Commit message best practices
🛠 Hands-on workshops
Team contribution2 h
Simulate working with several people on the same repository.
✅ Deliverable : A delivered collaborative project
Tools and technologies
GitGitHubVisual Studio Code
Teaching methods
- Alternating short lectures and hands-on work
- Live demonstrations by the trainer
- Capstone project built throughout the modules
- Group corrections and discussion of best practices
Assessment
- Hands-on exercises corrected in each module
- Mini-project completed at the end of the course
- Knowledge-check quiz
Required equipment
- A computer with an internet connection
- Git installed and an account on a repository hosting platform
Resources provided
- Course materials and repository of corrected exercises
Career outcomes
- A clean, readable project history
- Ease with everyday Git operations
- A team workflow suited to your context
Related video courses
My video courses that go with this program, to get ready for the training or to review afterwards. Free with an account.
