Skip to content

abraham-jimmy/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

dotfiles

How to init a bare repo for the first time:

Initialize the git repo in hidden files in your home folder

git init --bare ~/.dotfiles

Make it so no files are tracked by default

dotfiles config status.showUntrackedFiles no

Add alias to your .bashrc or .zshrc:

alias dotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'

On a new system clone this repo with:

git clone --bare [email protected]:abraham-jimmy/dotfiles.git $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'
dotfiles checkout
dotfiles config --local status.showUntrackedFiles no

Then you can use it to update and add files like:

dotfiles add <file>
dotfiles commit -m "Commit message"
dotfiles push origin main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published