Skip to content

liuw/dotfiles

Repository files navigation

Setting up

git init --bare $HOME/dotfiles
alias cfg='/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME'
cfg config --local status.showUntrackFiles no

Configuration

cfg remote add origin [email protected]:liuw/dotfiles.git
cfg config status.showUntrackedFiles no
cfg config user.name $NAME
cfg config user.email $EMAIL

Replication

git clone --separate-git-dir=$HOME/dotfiles [email protected]:liuw/dotfiles.git $HOME/conf-tmp
rsync --recursive --verbose --exclude '.git' $HOME/conf-tmp/ $HOME/
rm -rf conf-tmp

Usage

cfg status
cfg add .gitignore
cfg commit -m'Add gitignore'
cfg push origin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published