From c0c63d848769bf3d17d1df45ebdb90971f947fc5 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Fri, 27 Nov 2020 00:46:25 -0500 Subject: [PATCH] readme work? --- .github/README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/README.md 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 + -- 2.20.1