diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | README | 27 |
2 files changed, 25 insertions, 3 deletions
@@ -1,2 +1 @@ * -!/.* @@ -1,4 +1,27 @@ -What's "dotfiles", precious? -What's "dotfiles" eh? +A few good dotfiles +=================== 🎜 Clone'em, tweak'em, stick'em in your $HOME 🎝 + +Usage notes +----------- + +Some Git sorcery to maximize usability and avoid brittle hacks +(e.g. symlinks, homebrewed synchronization scripts): + +``` sh +# In $HOME, prepare a Git repository: +$ git init + +# Grab history: +$ git remote add --fetch $cutename $url + +# Move to latest commit without actually touching files: +$ git reset $cutename/master + +# Checkout dotfiles that were not already in $HOME: +$ git checkout -- .gitignore # … + +# Tell Git to forget about repository fluff: +$ git update-index --assumed-unchanged -- README # … +``` |
