I have just created my first git repository for some software my company writes. My intention is to be able to work on the software on multiple computers (office computer, home computer and laptop for when I’m working away).
The problem I am having is that my software is an extension for another piece of software and my code files are mixed in with the code files of the software we write for. As a result, I am unable to just add a directory to the repo that can then be pulled to each machine. To remedy this, I added each directory/file separately to the repo and then committed that. This worked great and my repo is working fine. The only problem is that when I pull the repo to another machine, instead of grabbing the files and adding them into the directory structure, it downloads all files and puts them inside a directory named after the repo. Is there anyway I can stop this so that the files are added to the existing directory structure?
In case any one reads this and wants to know the answer…
After playing about a little, the best (or maybe easiest for a beginner) was to clone the repo into repo name sub-directory and then move the .git file out of the sub-directory and merge the other files into my project. I can now push/pull for the repo to get the latest code