diff options
author | Peter | 2022-02-01 12:38:14 +0000 |
---|---|---|
committer | Peter | 2022-02-01 12:38:14 +0000 |
commit | 190e4ca8de27003bd123822f6ae3975591bf9e8f (patch) | |
tree | 09a009f5f76e2b3f1612d39b8812cc751c869a9c /content/posts/notes-on-storing-dotfiles.md | |
parent | 6a0fd6e9a379b782fc9e6226735a9fa7b61d4f5c (diff) | |
download | blog.minskio.co.uk-190e4ca8de27003bd123822f6ae3975591bf9e8f.tar.gz blog.minskio.co.uk-190e4ca8de27003bd123822f6ae3975591bf9e8f.tar.bz2 blog.minskio.co.uk-190e4ca8de27003bd123822f6ae3975591bf9e8f.zip |
Update post
Diffstat (limited to 'content/posts/notes-on-storing-dotfiles.md')
-rw-r--r-- | content/posts/notes-on-storing-dotfiles.md | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/content/posts/notes-on-storing-dotfiles.md b/content/posts/notes-on-storing-dotfiles.md index d9635a4..2ffd638 100644 --- a/content/posts/notes-on-storing-dotfiles.md +++ b/content/posts/notes-on-storing-dotfiles.md @@ -40,6 +40,21 @@ If you'd like to see what has changed before you commit them, you can run: dotfiles diff $HOME/.config/bspwm/bspwmrc ``` +Another point worth noting, [shamelessly stolen from jbauer](https://www.paritybit.ca/blog/how-i-manage-my-dotfiles) is omitting repository specific files (`readme.md`, `licence`, etc) via the `--skip-worktree` option, for example: +``` +dotfiles add readme.md +dotfiles commit -m "Add Readme" +rm readme.md +dotfiles update-index --skip-worktree readme.md +``` + +And then to update this file: +``` +dotfiles update-index --no-skip-worktree readme.md +dotfiles checkout -- readme.md +``` + And you're done. This guide is by no means unique, but has been collated from many posts accross the Internet detailing this process. -* **Edit 2020-07-21:** Added note about diffing changes
\ No newline at end of file +* **Edit 2020-07-21:** Added note about diffing changes +* **Edit 2021-11-29:** Added note about removing files from the work tree
\ No newline at end of file |