gitBlock 1.1: Reviewing git Basics
Background: https://unsplash.com/photos/842ofHC6MaI
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)addendum: git add -iYou can also interactively add changes with -i.
Thereโs also an extension available.
git-examplecookbook.md in your git-example directorycookbook.md and restore it.gitignore.gitignore ๐ฐ!
dir/** and !dir/.gitkeepdir/ vs. dir/**
dir/ and !dir/.gitkeep?dir/, the whole directory is ignored and git will not scan it at all.gitignore > .gitkeep ๐.gitkeep.gitignore file in the directory with * and !.gitignorehttps://adamj.eu/tech/2023/09/18/git-dont-create-gitkeep/
Any Questions?