$HOME git repo (selectively) to github?
- by user428502
I keep many files in my home directory under git. Important dotfiles, my thesis, etc.
I want to push certain files to github, e.g., my emacs configuration, to share.
Obviously, I don't want to push the entire repo. Are submodules the way to go?
My first thought is to make a directory ~/github/emacs, and rsync selective files here, then add a submodule under that directory, pointing to github, to push.
Is this a good idea, or is there a better way?
(I don't want my local git repo storing all files to get muddled up with this stuff, though.)