Github for version control

Github for version control

Published on

What is GitHub

GitHub is the largest shared repository. There are others out there but GitHub is the largest and most secure.

What does GitHub do?

  • Provides a massive repository of code to assist you.
  • Manage version control.
  • Manages security and code sharing.
  • Integrates with final production servers.

Stop Re-Inventing the Wheel

Chances are someone has already built the utility you are about to build. Take a minute to check GitHub or GitLab. See what's out there. Usually 90% of the code is unusable but eventually you'll come across a gem which will take your project to the next level.

Managing Version Control

Managing version control is a big deal, even if you are the only programmer. Careful version control avoids mistakes commonly made as projects add team members.

Repositories hold your production code in a common location.

Code can be pulled locally by you, your fellow team members and even the public, if you allow it.

From there changes can be made. Improvements can be added. Tests can be run.

Finally this separate branch can be integrated back into the original project.

GitHub and other repositories assist this process. They manage the branching of code. They allow for testing. They assist in the re-integration of changes back into a single production build.

Manages Security and code sharing

Sometimes you want to share you code with the public. Sometimes you want a project only accessible to a few team members.

GitHub also allows you to keep secrets, such as database passwords, from the public.

Integrates with final production servers

Many hosting platforms integrate with GitHub.

This allows you to mark a project "live" and anytime you update the code the hosting company will see the change and publish those changes.

GitHub is awesome

Most companies benefit from their services. Branch control encourages proper testing prior to release, with more people able to check the code and eliminate costly mistakes.