4 ms·
Here's a better solution. https://www.atlassian.com/git/tutorials/dotfiles https://www.atlassian.com/git/tutorials/dotfiles TL;DR: alias dotfiles='/usr/bin
by scaladev 6y ago
Here's a better solution.
https://www.atlassian.com/git/tutorials/dotfiles https://www.atlassian.com/git/tutorials/dotfiles
TL;DR:
alias dotfiles='/usr/bin/git --git-dir=$HOME/src/dotfiles --work-tree=$HOME'
dotfiles add
dotfiles commit
...
- StavrosK 6y agoI really like that solution, thanks. It also means I can easily move my current git dir to the new place and still have everything work. Does anyone know if syncing a git repo over Syncthing (or similar) is a good idea or whether there are likely to be conflicts? I don't know if git names its files such that conflicts aren't possible.
- yesbabyyes 6y agoBrilliant, thanks!