Git Awesometown

the basics

git init
git status
git add -N .
git add -p
git commit -m "message"

branching and merging

git checkout -b branchname
git checkout <pointer>
git merge master
git branch -d branchname
git log --oneline --graph
  --decorate --all -15

configs

git config --global --list

vim ~/.gitconfig

git config --global
  core.excludesfile
  /Users/<user>
  /.gitignore_global

rebasing

git rebase
  <on top of pointer>
  (<me/this pointer>)

git rebase -i -p HEAD~5

remotes

git remote -v
git remote add <place>
  <url>
git remote remove <place>
git push <place>
  <pointer>

git fetch <place>
  (<pointer>)
git pull <place> (<pointer>)
git branch -d -r
  <place>/<pointer>

no gods no masters

git config --global
  init.defaultBranch <name>

git branch -m <name of
  default branch>

thanks to

  • space for play and curiosity
  • computer friends
  • git-scm.com/book/en/v2

✨ emily platzer ✨

deck

By Emily Platzer