I am wanting to version control my entire 'CLIENT' folder which includes everything for my clients such as fonts, stock images, designs, print files etc. Some of these files are very large so there is no way I could upload these to a remote repo.
On the other hand, I would like to upload their website to a remote repo for when another developer works on the site.
On this basis I am thinking of creating a repo for the main client folder and submodule for the website project. Unless there is a better way of doing things?
For reference, my project file structure is as follows:
~/Documents/Clients/Client/Projects/Website/5-Website
Client = Main project folder 5-Website = Website Project
I'm opening my main project folder in Terminal (MacOS) and initialising git using the following code
cd ~/Documents/Clients/Client && git init && git config --global user.email 'name@email.com' && git config --global user.name 'Full Name' && git add . && git commit -m 'initial commit, added all files'
It's working perfect up till this point and here's where it does wrong.
I then (while I am still in the client folder) type into Terminal
git submodule add --name website ~/Documents/Clients/TEMPLATE/projects/Website/5-Website
To try to add my submodule but I get the following error:
fatal: repository '/Users/User/Documents/Clients/CLIENT/projects/Website/5-WEBSITE' does not exist
fatal: clone of '/Users/User/Documents/Clients/CLIENT/projects/Website/5-WEBSITE' into submodule path '/Users/User/Documents/Clients/CLIENT/5-WEBSITE' failed
If you notice the last part of the error message, it misses out part of the folder url just 5-website.
What am I doing wrong?