Skip to content

Guide to Version Control

Chelsea Miya edited this page Jul 12, 2023 · 1 revision

Guide to Version Control

What is Branching?

  • In GitHub, you can save different versions of a project known as 'version control.'
  • The 'Main Branch' is the default version, similar to the trunk of a tree.
  • The website is deployed from 'Main Branch.'
  • Users can create multiple versions or 'branches' of a project.

Why Branch?

  • Branching protects the 'Main Branch' from being corrupted.
  • Users can edit and save revisions (aka 'commits') in a separate branch before 'merging' those changes into the 'Main Branch.'
  • Project contributors are notified of new 'commits.'
  • By adjusting permissions, the repository admin can restrict the ability to accept or reject changes to the 'Main Branch.'

Tracking Changes

Repository-Wide Changes

  • The main page of a repository shows the most recent commits to each file.
branch-1

File Changes

  • Individual files contain detailed records of revisions.
  • View a file's revision history by clicking 'Blame' at the top-left.
branch-2

Anatomy of a Jekyll Site

Updating the Website

Version Control

Additional Resources

Clone this wiki locally