blob: b8dbfa99f659318816668fa47723b10ad91d9f71 (
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
31
32
33
|
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/trunk
# Checkout dotfiles that were not already in $HOME:
$ git restore -- .foo .bar .baz
# Or checkout everything:
$ git restore -- $(git ls-files --deleted)
# Tell Git to ignore all untracked files:
$ echo '*' >> .git/info/exclude
# Tell Git to forget about repository fluff:
$ git update-index --assume-unchanged -- README # …
```
|