Skip to content

Latest commit

 

History

History

ep099

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Today I talk about git apply and a workflow I use to temporarily store diffs.

Setup commands

git clone git@github.com:asottile/babi
# git clone https://github.com/asottile/babi
cd babi

Interactive examples

Bash

babi setup.cfg
git diff
git diff > backwards.patch
cat backwards.patch
git status

git checkout -- .
git status
babi setup.cfg

git apply backwards.patch
git status

git checkout -- .
git status

patch --help
patch -p1 -i backwards.patch
git diff