Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.06 KB

File metadata and controls

52 lines (36 loc) · 1.06 KB

Lesson 1 - Forking & Cloning

New Terms

  • Repository - A folder of code, docs, tests, etc.
  • Forking - The process of creating a fork.
    • A Fork is a copy of a repo.
    • Can be used to experiment with someone elses code.
  • Cloning - The process of creating a local copy of a repo on your machine.

Prerequisites

  • Download and install Git

Lesson

Stage 1 - Fork a repo

  1. Navigate to GitDemo on GitHub
  2. Fork the repo for your user

Stage 2 - Clone a repo

  1. Create a folder to hold your GitHub Repos

    New-Item -Path C:\GitHub -ItemType Directory
  2. Navigate into the folder

    Set-Location C:\GitHub
  3. Clone the newly forked repo

    git clone https://github.com/<<USERNAME>>/GitDemo.git
    
  4. Navigate into the repo

    Set-Location .\GitDemo\
  5. Have a look at the status

    git status
    

Next Up...