DEV Community

Discussion on: Dotfiles - Put your home directory under `git`

Collapse
 
relausen profile image
Rune Lausen • Edited

A far more elegant solution - simpler, not needing maintaining .gitignore, and not making my home dir a git repo - can be found here: atlassian.com/git/tutorials/dotfiles

Only microscopic drawback is that I have a separate alias for git. I call my alias cfg, which also makes it very explicit that I'm doing config file stuff.

I've been using it for years without any hassles at all, and can't recommend it enough.

Collapse
 
jonlauridsen profile image
Jon Lauridsen

Thank's @coreyja , inspired me to start centralising my dotfiles.

And thanks for that link Rune, interesting alternative. Just to add that there's also a dev.to article based on the Atlassian approach from @skelebrina here: dev.to/skelebrina/dotfile-manageme...

Collapse
 
coreyja profile image
Corey Alexander

Glad it inspired ya @jonlauridsen !

Thanks for the other link too, will check it out!

Collapse
 
deusmxsabrina profile image
Sabrina

Thank you for the mention Jon!

Collapse
 
coreyja profile image
Corey Alexander

Oh ya that is another good way to do it! I'll have to dig more into that sometime and compare the techniques. Thanks for sharing!

Collapse
 
mkrcah profile image
Marcel Krčah

Indeed, it took me a while to figure what a bare repo is, so I explained it visually here: marcel.is/managing-dotfiles-with-g...