Created
March 19, 2019 22:21
-
-
Save geo-stanciu/7669bdbf04f8eea9f13d05273b7aa951 to your computer and use it in GitHub Desktop.
Using git bare repository for dotfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p $HOME/.dotfiles | |
git init --bare $HOME/.dotfiles | |
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' | |
(add this alias to .bashrc) | |
bash config config --local status.showUntrackedFiles no | |
Basic usage example: | |
config add /path/to/file | |
config commit -m "A short message" | |
config push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment