$HOME git repo (selectively) to github?
Posted
by
user428502
on Stack Overflow
See other posts from Stack Overflow
or by user428502
Published on 2011-02-10T15:12:59Z
Indexed on
2011/02/10
15:25 UTC
Read the original article
Hit count: 207
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.)
© Stack Overflow or respective owner