In this training you will see how to become autonomous in your use of Git. Whether you work alone at home locally, or in a team on a common project. You will see the basic notions (command, repository, commit....), as well as branches or conflict resolution. GIT represents a radical change in open source development because it allows collaboration without coordination: two developers can work simultaneously on a piece of code and make changes without paying attention to what the other is doing! GIT keeps track of who made what change and when.
Objectives
To provide the knowledge and skills required to effectively generate source code using the Git manager.
Is it for you ?
Developers and architects.
Prerequisite
Be able to use a command-line interface (CLI).
Content
Working on an IT project (of any complexity) requires collaboration with other developers. If each person is responsible for his or her own code, the work of some can/should have an impact on that of others so that in the end the whole thing corresponds to the expected deliverable and the program works. The whole issue is therefore to succeed in working together without necessarily coordinating and to be able to keep track of the work done to go back if necessary.
Git is the perfect tool for this since it was designed precisely to manage versioning during programming. It is particularly popular in organizations and services where code is developed.
Introduction to Git
Git, the version control software of a computer project. Or how to keep track of your work in order to correct errors or easily go back to a previous version. Git facilitates the management and deployment of computer projects, whether you are alone or several. Above all, it allows everyone to move forward on their deliverables, on the one hand without depending on the progress of others, and on the other hand without fear of losing or altering the work already done. We will see the logic of the work cycle, how to start a project and use the branches properly and of course the sharing.
Installing the tools
- Install and configure Git on your machine
- Save the history of source code modifications (and go back to a previous version if necessary, for debugging for example)
- The advantage of remote repositories. GitHub, the online platform to host Git repositories. Understand the differences between the two tools and how they interact.
- Starting a new project
See more + / -
How to install git on your computer
- The basic commands, including git.config
Working locally on your computer with Git
- Creating a repository, making your first commit
- Succeeding with a repository and initializing the repository in the active folder
- Index of modifications
- Displaying current changes
- Characteristics of hidden .git folders or how to lose your history
Understand the structure of the git tree. Keeping your branches clean
- The principle of branches
- Creating a branch
- Recovering a branch
- Merging branches
- Delete a branch
How to go back (e.g. in case of an error) in Git
- Fixing errors locally
- Accessing and browsing the commit history
- Using tags to simplify your life
- Correcting errors on a remote repository
- Git reset
- Failed commit, how to fix it
How to run successfully with remote repositories
- Discover the different cloud services: GitHub, Gitlab and Bitbucket
- Moving local changes to the remote repository.
- Initialize the remote repository.
- Manage files to ignore (e.g. binaries).
- Pushing your commits
How to collaborate in team with Git
- Approaching versioning or how to organize work teams around Git
- Sharing source code with gists
- Modifying branches
- Cleaning up branches
- Keep track of changes and filter them
- Integrate external repositories into your own
- Merging files and commits
How to publish code to a remote server
- Updating code from a remote server
- Resolving conflicts
What is the GitFlow model
- Using gitflow and pull requests.
Introduction to continuous integration
💡 Useful information
Our training sessions are offered in Montreal or Quebec City, in person or in virtual format. Dates and locations are provided when you select your session below. If you have any questions regarding registration, schedules, the language of instruction, or cancellation policies, please consult our FAQ .
Trainers
Private or personalized training
Do you have several employees interested in the same training course? Whether in person at your offices or remotely in virtual mode, we offer private training courses tailored to your team's needs. Group rates are available. Contact us for more details or request a quote online.
Request a quote