CFG 设置新主机 克隆此仓库: cd ~ / && git clone --bare git@github.com:takelley1/dotfiles.git $HOME /.cfg 创建别名: alias dot= ' /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME ' # Linux path alias dot= ' /usr/local/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME ' # FreeBSD path 检出文件: dot checkout master git将覆盖的备份dotfile: cd ~ / && mkdir .cfg.bak && mv file1.txt file2.txt file3.txt -t cfg.bak 配置g