README (770B)
1 A few good dotfiles 2 =================== 3 4 🎜 Clone'em, tweak'em, stick'em in your $HOME 🎝 5 6 Usage notes 7 ----------- 8 9 Some Git sorcery to maximize usability and avoid brittle hacks 10 (e.g. symlinks, homebrewed synchronization scripts): 11 12 ``` sh 13 # In $HOME, prepare a Git repository: 14 $ git init 15 16 # Grab history: 17 $ git remote add --fetch $cutename $url 18 19 # Move to latest commit without actually touching files: 20 $ git reset $cutename/trunk 21 22 # Checkout dotfiles that were not already in $HOME: 23 $ git restore -- .foo .bar .baz 24 25 # Or checkout everything: 26 $ git restore -- $(git ls-files --deleted) 27 28 # Tell Git to ignore all untracked files: 29 $ echo '*' >> .git/info/exclude 30 31 # Tell Git to forget about repository fluff: 32 $ git update-index --assume-unchanged -- README # … 33 ```