Skip to content

Instantly share code, notes, and snippets.

@schwabix
Created June 8, 2019 13:02
Show Gist options
  • Save schwabix/411640e1a3ef6c256b933f2524bc2b44 to your computer and use it in GitHub Desktop.
Save schwabix/411640e1a3ef6c256b933f2524bc2b44 to your computer and use it in GitHub Desktop.
Manage DotFiles with GIT
#!/usr/bin/env bash
git init --bare ~/.dotfiles
alias dotgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
echo "alias dotgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> ~/.bashrc
dotgit config status.showUntrackedFiles no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment