git
Block 1.1: Reviewing git
Basics
Background: https://unsplash.com/photos/842ofHC6MaI
git
git
itself is a CLI program*: These programs have a different main purpose, but also offer the option of using git via their GUI.
git
commandsI hope some of these git commands sound familiar to you.
git status
git init
git add
git commit
git restore
git stash
git checkout
git branch
git switch
git merge
git pull / push
git cherry-pick
Changes can be either unstaged, staged or commited.
add
the change to the staging area it is stagedcommit
all staged changesChanges can be either unstaged, staged or commited.
restore
the commited version (and remove any unstaged changes)git-example
cookbook.md
in your git-example
directorySince VSCode is primarily a text editor, git functionality is hidden in the sidebar
cookbook.md
and restore itAny Questions?