git - Adding your .vim ~/.vimrc to github (aka dot files) -


i have seen few people have git repos dot files. i'm wondering if

cd ~/ git init git add .vimrc // etc 

? , that's how keep date? or make copies , sync them?

what strategy guys recommend or use? don't wanna commit , push entire ~/

thanks

making git repository of home bad idea (you spending more time creating .gitignore file on doing want do).

i suggest using separate git directory dotfiles (eg. ~/git/dotfiles) , them making symlinks home (eg. ln -s ~/git/dotfiles/.vim ~/.vim, etc.).

if can't bothered creating symlinks manually each time want install dotfiles somewhere, can use script following one: https://github.com/sitaktif/dotfiles/blob/master/bin/create-symlinks (it uses https://github.com/sitaktif/dotfiles/blob/master/config.example configuration).


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -