Git
Git & GitHub
Start here once your project template compiles locally.
Preparation
Step 1
Git Installation
Install Git and set the basic identity you will reuse across projects.
Step 2
GitHub Account Setup
Prepare the GitHub account you will use for repositories and collaboration.
Step 3
Connect GitHub
Set the Git identity VS Code will use and know what to do if GitHub asks for browser sign-in.
First GitHub workflow
Daily workflow
Topic 1
Git status
Check what changed before you stage, commit, or push.
Topic 2
Pull & Push
Repeat one clean sync loop so local work and remote history stay aligned.
Topic 3
Version Control
Understand tracked, modified, staged, and committed states well enough to stay calm.
Topic 4
Conflict
Resolve same-file text conflicts without panic and return to the normal loop.
Optional
Source control
Use VS Code Source Control to stash or discard local changes.
Optional
Recovery
Recover committed work, undo local mistakes, and return safely to a known Git state.
Optional
Gitignore
Exclude files and folders when you push to GitHub.
Next
Then move to Collaboration
Once daily Git workflows are stable, continue to shared repository collaboration.
Go to Collaboration