X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=.github%2FREADME.md;fp=.github%2FREADME.md;h=49d604536762763193fbcc7093140919a14c6ce1;hp=0000000000000000000000000000000000000000;hb=c0c63d848769bf3d17d1df45ebdb90971f947fc5;hpb=14d61ce32ff2cdca6af3accb75840abcaaf558ef diff --git a/.github/README.md b/.github/README.md new file mode 100644 index 0000000..49d6045 --- /dev/null +++ b/.github/README.md @@ -0,0 +1,30 @@ +# Dotfiles!! + +## How I manage dotfiles +This method of managing dotfiles was inspired by [this](https://www.youtube.com/watch?v=tBoLDpTWVOM) video. + +TLDR; +Run in your home directory: +``` +git init --bare .dotfiles +``` + +Then for ease of use add this alias to your bashrc (etc): +``` +alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME' +``` + +After reloading the shell, run: +``` +dotfiles config --local status.showUntrackedFiles no +``` + +Now you can use the normal git commands like so +``` +dotfiles add .bashrc +dotfiles status +dotfiles commit -m 'added .bashrc' +``` + +## Features +