I have a gitignore that only sends two subdirectories to github.
my gitignore
/*
!/conf
/conf/*
!/conf/jingle_profiles
!/conf/dialplan
this uploads the two subdirectories (dialplan,jingle_profiles) to github.
I want to clone those subdirectories into the root file tree (/usr/local/freeswitch) and have them keep those two subdirectories synced without deleting everything else.
edit:
the error I get when I:
sudo git clone https://github.com/dgmcguire/freeswitch.git
is
fatal: destination path 'freeswitch' already exists and is not an empty directory.
git clonerequires an empty directory, but subsequent pulls won’t do anything to ignored files.So, simply create an empty subdirectory inside
/usr/local/freeswitch, do yourgit cloneinside that subdirectory and afterwards, move the contents of this subdirectory to/usr/local/freeswitch.Should be something like this:
I am no linux guy, so there might be some errors in the commands used – the intent however should be clear.