blob: 0f246b7dd656eb49527fdecd1695d911fd1acc1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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 -- .foo .bar .baz
# Tell Git to ignore all untracked files:
$ echo '*' >> .git/info/exclude
# Tell Git to forget about repository fluff:
$ git update-index --assumed-unchanged -- README # …
```
|