Advantages of Git source control

What are the advantages of using Git source control in your development task?

Using Git source control while developing your web application or any other application helps you to:
  • Distribute Development
    • By the help of branching out in your master branch, it is easy to do some changes while other is doing their change in the same code. For example, let say we have a different task in the same modules. We can modify the both code in the same time without conflicting the other code of the other developers, and merge it later on.
  • Easily track your changes.
    • It easy to track your changes by the use of git commands and of course by the use of web-based hosting service for version control like Github, Gitlab or Bitbucket.
  • Code Review for Developer
    • If you're not authorize to merge your changes in the master branch you ca do a Pull request or merge request, so that the admin or owner of the repository will do some code review on your changes.
  • Faster release of your product
    • You can hook your git repository directly in your server if you have any changes in your master repository. For example, I am deploying my changes in a ubuntu server the normal process is like this: 
      1. Push your changes, 
      2. Open ubuntu server
      3. Copy your changes in the server
    • That's a bit of work? By adding a git hook, if you push your changes in your production and run this command: git push production master it will automatically compare the production to your master branch and push the changes. Production is your ubuntu server files while master is your main branch.
    • By this, it will automatically add your changes to your server.
If you have any comments or suggestion feel free to comment.

Comments