This commit is contained in:
Marc Beninca 2024-02-28 15:15:36 +01:00
parent 3784039306
commit 817607a319
4 changed files with 75 additions and 24 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/out

24
body.md
View file

@ -1,24 +0,0 @@
# Git
## Concepts
* hash
* sha1 (sha256)
## Porcelain
* git init
* bare | non-bare
* git config
* user name & email
* description
* git worktree
## Plumbing
* .git/config
* .git/description
* .git/objects
* .git/objects
* git hash-object -w file
* git cat-file -p hash

15
build.sh Executable file
View file

@ -0,0 +1,15 @@
#! /usr/bin/env bash
FILE="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${FILE}")"
OUTPUT="${ROOT}/out"
#rm --force --recursive "${OUTPUT}"
mkdir --parents "${OUTPUT}"
pandoc \
--standalone \
--self-contained \
--output "${OUTPUT}/index.html" \
--write 'revealjs' \
"${ROOT}/index.md"

59
index.md Normal file
View file

@ -0,0 +1,59 @@
---
author: Marc Beninca
title: Git CPP
subtitle: Concepts, Porcelain & Plumbing
date: 2024 / 03
---
# Git
## Concepts
* hash
* sha1 (sha256)
## Porcelain
* git init
* bare | non-bare
* git config
* system → global → local
* user name & email
* description
* git status
* git branch --force
* git add
* git commit
* git checkout | switch
* git worktree
* git merge
* fast-forward
* three-way
* git rebase
* as-is
* merge-squash
* cherry-pick
* interactive
* git reflog
* git remote | clone
* git fetch | pull
* git push
* git tag
## Plumbing
* .git/config
* .git/description
* .git/refs
* heads/branch
* remotes/remote/branch
* tags/tag
* .git/objects
* .git/objects
* git cat-file -t|-p hash
* git update-ref refs/heads/dev hash
* git symbolic-ref HEAD refs/heads/main
* git hash-object -w file
* git update-index
* git write-tree
* git commit-tree