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
commandsWhich of these git commands / actions have you used already? Have you used any that are not on this list?
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
library.txt
in your git-example
directorygit init -h
and copy the output into your library.txt
library.txt
and restore itSince VSCode is primarily a text editor, git functionality is hidden in the sidebar
git <command> -h
and copy the output into your library.txt
library.txt
and restore itAny Questions?