I have a git repo test, and a file (zsh config file), and
ln ~/.zshrc test/zshrc
then I changed .zshrc file,the zshrc file in git repo didn’t change,is that git cannot deal with hardlink?
if so, how can I use git to manage these dotfiles?any suggestion
You can’t make¹ hard links outside a git repository. You have several choices:
~/.zshrca symbolic link tomy-home-git-checkout/zshrc.¹ Yeah, ok, quibble: you can’t keep.