Dotfiles Management

cd ~
mkdir .dotfiles
cd .dotfiles
git init --bare   # initialise a bare git repo
cd -

echo "alias dotfiles='git --git-dir=/home/mx/.dotfiles --work-tree=/'" >> .bashrc
source .bashrc

# telling git not to show untracked files, 否则查看 log 时会从根目录挨个遍历
dotfiles config --local status.showUntrackedFiles no

dotfiles add ~/.vimrc
dotfiles commit -m "add .vimrc"

dotfiles ls-files

Dotfiles Management

posted on 2023-01-12 14:09  明天有风吹  阅读(28)  评论(0编辑  收藏  举报

导航

+V atob('d2h5X251bGw=')

请备注:from博客园