-
Notifications
You must be signed in to change notification settings - Fork 0
Home
eneller edited this page Aug 4, 2022
·
6 revisions
Welcome to the .dotfiles wiki!
This Repo is currently set up following a tutorial inspired by a Hacker News post .
This technique simply uses a bare git repository (in this case located in ~/.dotfiles).
A dotfiles alias can then be added to your respective terminalrc (e.g. .bashrc) for ease of use.
- Clone the repo into a bare repository in your home directory
git clone --bare git@github.com:eneller/.dotfiles.git $HOME/.dotfiles
- Append the following alias to your terminalrc
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
- Checkout the content from your repo to your home directory
dotfiles checkout
- Configure git to hide untracked files for this repo
dotfiles config --local status.showUntrackedFiles no
- Initialize a bare git repository in your home directory using
git init --bare $HOME/.dotfiles
- Append the following alias to your terminalrc
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
- Use git as you would normally to track your dotfiles, only using e.g.
dotfiles addinstead ofgit add
Use git tag to mark specific commits for later checkout.