我正在使用基于 Git 的点文件管理:
- https://www.stefanjudis.com/notes/git-based-dotfile-management-without-symlinks/
- https://www.atlassian.com/git/tutorials/dotfiles
我有裸 git 存储~/Repositories/dotfiles
库alias dotfiles='git --git-dir=$HOME/Repositories/dotfiles --work-tree=$HOME'
和dotfiles config --local status.showUntrackedFiles no
当我使用 VSCode 编辑我的点文件时,它git
不起作用,因为.git
其中没有文件夹,~/.config/zsh
例如它位于~/Repositories/dotfiles
哪个轨道中~/
。
如果项目根目录中没有文件夹,我可以从裸存储库git
使用 VSCode 扩展吗?基本上是一个后备方案。.git
~/Repositories/dotfiles
.git
.git