Version Control System - Shareppy Internacional News
esta es la descripcion
Shareppy, fintech, fábrica de software, sector financiero, soluciones tecnológicas, colombia
post-template-default,single,single-post,postid-1396,single-format-standard,bridge-core-2.5.4,ajax_fade,page_not_loaded,,qode-title-hidden,qode_grid_1300,qode-child-theme-ver-1.0.0,qode-theme-ver-23.9,qode-theme-bridge,qode_header_in_grid,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Version Control System

Version Control System


What is a version control system?

Version control, also known as “source code control,” is the practice of tracking and managing changes to software code. Version control systems are software tools that help software teams manage changes to source code over time. As development environments accelerate, version control systems help software teams work faster and smarter. They are especially useful for DevOps teams, helping them reduce development time and increase successful deployments.


Benefits of version control systems:

  1. A complete long-term change history of all files.
  2. Creation of branches and merges.
  3. Traceability.
  4. Backups.

What is Git?

Git is a free and open source distributed version control system designed to handle everything from small projects to very large projects quickly and efficiently.


Advantages of using Git

  1. Distributed
  2. Fast
  3. Efficient
  4. Secure
  5. Flexible


Disadvantages of using Git

  1.  Learning curve.
  2.  Number of commands.
  3.  Meanings of commands.


Basic Commands:

  • Initialize an empty repository in a specific folder.

git init

  • Add a specific file.

git add “filename”

  • Add all files in the directory.

git add .

  • Commit the changes made. The “message” is generally used to associate the commit with a brief description of the changes made.

git commit –am “message”

  • Upload the branch “branch_name” to the remote server.

git push origin “branch_name”

  • Revert the commit identified by “hash_commit”.

git revert “hash_commit”

  • Show the current status of the branch, such as what changes there are without committing.

git status

Sources: Atlassian Git TutorialGit .