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
Post a Comment