我和你们一样使用 Git 和 GitHub 管理我的点文件。我将原始文件命名为不带点(例如zshrc,not .zshrc),以便我可以在 Finder 中识别它们并用点创建它们的符号链接;
ln -s ~/.dotfiles/gitignore_global ~/.gitignore_global
ln -s ~/.dotfiles/zshrc ~/.zshrc
# and so on...
当我在 GitHub 网站上查看他们的远程存储库时,我的语法突出显示gitconfig并且gitignore_global无效,而其他的.gitconfig则正确着色。然而,myzshrc有它的语法高亮,尽管它的名称中不包含点。
我想强调gitconfig和gitignore_global喜欢.gitconfig和.gitignore。有什么办法可以做到这一点?
先感谢您。