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.
Version Control in Github is usually done on Github Desktop and you can clone, create or add a repository into the software.
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.
You can also view the entire development history of your repository and revert any changes that you have made to it.
There are 3 main functions you should know when using Version Control in Github:
|
|