Terms
Repository
- The code base. Where all project files are stored. Typically your project folder is your repository, and you will have 1 per project.
Branch
- By default, a project has 1 'branch', or one version of the code, usually named 'main'.
- You can split off a project into branches that each contain different versions of that code.
- When collaborating, it's common to build out an individual feature in your own branch, and then merge in the 'main' application branch.
- Even when working in your own, you might want to build out a branch to isolate a certain feature or idea (I typically do this if I want to test out a drastic change).
Commit
- Snapshot of a particular time in a branch's history
Fork
- If you want to build on existing code, you can take a copy of a repository on your local machine that is independent (changes will not propagate to the original). This process is called 'forking'.
Terminal & Command Prompt
We will use Github through Terminal (Mac/Unix), or Command Prompt (Windows).
Note that VS Code can run Terminal directly (and it will operate in your project folder). I suggest sticking to running commands in VS Code. If you want to use Terminal or CMD prompt instead, see commands below.
Mac Commands
Windows Commands