From: Daniel Liu Date: Fri, 27 Nov 2020 05:46:25 +0000 (-0500) Subject: readme work? X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=c0c63d848769bf3d17d1df45ebdb90971f947fc5;p=dotfiles.git readme work? --- 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 +