Created
December 19, 2020 16:23
-
-
Save GabrielMMelo/496144fef601a1d7385b3552e625dbfd to your computer and use it in GitHub Desktop.
Creating and cloning a dotfiles (bare) repo
This file contains hidden or 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
# creating | |
git init --bare $HOME/.cfg | |
alias dotfiles='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' | |
dotfiles config --local status.showUntrackedFiles no | |
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc | |
# cloning | |
git clone --bare https://github.com/USER_NAME/.dotfiles.git ~/.cfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment