Nowadays, working in a developer team implies to share the work and to merge all the developed code. Because no one likes to lose what has been done, developers need to register their work while developing. For this reason, CI (Continuous Integration) is usually the common process used in project management to synchronise the work directly on a development or a production server.
The use of a VCS: Version Control System
There are two major and common types of Version Control System:
- The Centralized Version Control System (CVCS)
- The Decentralized or Distributed Version Control System (DVCS)
The CVCS uses a central server and stores all files. It works on a single repository and enables team collaboration. It’s a central server that all team members have access to.
With DVCS instead, it is not mandatory to rely on a central server to store versions of the project’s files. Every team member has a clone of the project or file, the repository. Thus, every single one can effectuate some modifications and then share them with the others on a server.
Git technology, the best DVCS
Beyond being the most popular DVCS (Distributed Version Control System), Git technology remains one of the most recommended because of its reliability, its strengths and its safety.
The very first practical feature of Git is the versioning: it allows to go back at any T moment of the project. Indeed, Git keeps traces of any modification of the code pushed on a server by allowing a new version number to each modified file.
The use of a cloud-based service such as Gitlab allows to add Continuous Integration while pushing work in the master branch. Then, developers can check the code quality on time.
In other words, Git allows many practical features:
- To register the files while developing
- To go back and forward
- To clone a repository
- To create branches…
It also provides many commands such as:
- git stash
- git checkout
- git merge
- git branch
- git clone
- git status
- git commit
- git pull
- git push…
This non-exhaustive list gathers the most used and important commands. It explains why Git remains the developers’ favorite Version Control System.
To encourage the Tech knowledge
To discover more about the coding technologies, curiosity must be encouraged. That’s the will of the Web & Mobile Development Center, composed of 40 developers and technology experts and powered by the Positive Thinking Company.
One of them, Samir Hanini, provided four Git trainings sessions for the enthusiasts of this technology: “I’ve loved to teach about Git because each new training I’ve prepared also helped me to learn more about the technology.”
Samir will have the opportunity to join the Git Merge 2018 conference in Barcelona in March 2018 to get even more experience about the technology. Stay tuned to discover his feedback about the latest Git features!
Thanks to our Git expert Samir Hanini, our passionate co-worker Muriel Sohet and the Positive Academy for their time.