Learning assistant supported notes for CS 35L
git init
.git
, a subdirectorygit clone [repository]
HEAD
→ Most recent commit → parent → … → first commit.git/config
git config
, don’t edit directly[user]
section: tied to commit identity.git/hooks/
autogen.sh
sets up Git and makes custom scriptsrebase
.git/index
.git/info/exclude
.gitignore
).gitignore
is version-controlled and shareable.git/log
.git/objects
.git/objects/[first 2 hex digits]/[remaining 38 hex digits]
Blob → Tree → Commit
[MODE] [TYPE] [ID] [NAME]
echo 'Arma Virumque cano' | git hash-object --stdin
echo 'Arma Virumque cano' | git hash-object --stdin -w
1101
git bisect start
git bisect bad HEAD
git bisect good v27.0
git checkout <some_commit>
make check
git bisect good
git bisect skip
git bisect start HEAD v27.0
git bisect run make check