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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -