PROJECT MANAGMENT

Introduction

Github is used not just to host your website but to keep track of changes that you have made when coding. In this webpage I will show you how to use Github for Version Control.


Version Control With Github

In Github, a repository is where you manage all your project work and it contains your project files and version history.

Project Managment Repository 1 Project Managment Repository 2

Version Control in Github is usually done on Github Desktop and you can clone, create or add a repository into the software.

Project Managment VC 1 Project Managment VC 2

Once you have done the following, you can go into the repository folder on your computer and start editting your files in them. Inside your repository folder, you should have some additional files:

  • .git: a hidden folder that contains all the data needed for GITHUB to manage your repository. If you want to view it, you need go to the view tab in file explorer and check hidden items. Please don't mess around with .git though as you could lose your version control data!
  • README.md: A markdown file that gives readers a detailed description of the projects in your repository.
Project Managment VC 2.5 Project Managment VC 2.5.2

You can also view the entire development history of your repository and revert any changes that you have made to it.

Project Managment VC 3 Project Managment VC 7

There are 3 main functions you should know when using Version Control in Github:

  • Fetch/ Pull: Sync up your online repository with your local repository.
  • Project Managment VC 4
  • Push: Move your local repository changes to your online one.
  • Project Managment VC 6
  • Commit: Finalize your change to your repository content.
  • Project Managment VC 5