I'd like to version ~/.bashrc
and ~/.bash_profile
using git, best if in-place (at the actual location), rather than creating a new repo and copy the file over and do the versioning there.
Is there a way to do that? I think the difficulty is, if I create a repo at ~
, it includes every folder in my home directory and is not desirable.
Is there some way to tell git: version only these files or folder, and disregard everything else and don't consider them to be submodules? If it can be like that, it might be a solution, except it seem like a super big repo to be at the home directory but at the same time ignoring almost everything.