Created
February 23, 2017 14:27
-
-
Save casept/4cfb4c698985737c32deb502c631b15b to your computer and use it in GitHub Desktop.
Set up dotfiles https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
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
#!/bin/sh | |
set -e | |
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' | |
echo ".cfg" >> .gitignore | |
git clone --bare https://github.com/casept/dotfiles.git $HOME/.cfg | |
config checkout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment