0

I'm trying to add a couple of files in my home directory to my svn repository, namely .vimrc and .bashrc. How do I go about doing this? I don't want to import everything in my home directory because that would be too many files, I only want to add a couple of files from my home directory.

Thanks in advance

Eddy
  • 6,661
  • 21
  • 58
  • 71

2 Answers2

1

The usual way is to put these files into a separate directory (e.g. ${HOME}/dotfiles) and symlink these into your ${HOME} (e.g. ln -s ${HOME}/dotfiles/vimrc ${HOME}/.vimrc).

Then you can put your dotfiles directory under version control.

johnsyweb
  • 136,902
  • 23
  • 188
  • 247
0

I think you can add only the files you want and ignore the rest.

svn add filename

And ignore the rest as seen here How do I ignore a directory with SVN? (also work for files)

Community
  • 1
  • 1
Rafaesp
  • 613
  • 6
  • 17