- clone the repo
~~git clone --bare https://github.com/fajknli/.dotfiles.git $HOME/.dotfiles~~
git clone --bare git@github.com:fajknli/.dotfiles.git --depth=1 $HOME/.dotfiles
- adds alias in .bashrc or .profile ...
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
- checkout file in work directory
dotfiles checkout -f
- hides no tracked files (work directory have too many files)
dotfiles config --local status.showUntrackedFiles no
- How to track file?
you can use $HOME/.local/bin/dots check it , add file or directories in it, then run the script
- automatically track any new files which created after been tracked directory
Check the file .dotfile/hooks/pre-commit
More alias at .bash_alias
hahaha