|
|
|
|
|
by mbudde
4265 days ago
|
|
I have very similar setup to yours, but my solution is to use a bare repository. To set up dotfiles on a new computer is just $ git clone --bare git@github.com:mbudde/homedir.git .homegit
$ git --git-dir=.homegit --work-tree=~ checkout -f # Overwrite existing files
$ echo '*' >> .homegit/info/exclude
And then I have a simple git wrapper script [1]. I moved from using an alias to a script for some reason I can't remember (and of cause I didn't write it in the commit message -_-).[1] https://github.com/mbudde/homedir/blob/master/usr/bin/hgit |
|