Reputation: 21
I’m new to Git and version control and want to implement it on a project in SAS that I have been working on for several years in a Windows environment. We have a Production folder, a Test Folder, and a folder for each developer (i.e. Dev1, Dev2, etc.) and I’m trying to figure out how to set things up.
As I look through the posts and on various tutorials, they often say to create a bare repository and then clone it so that you can push or pull your code using the bare repo. However whenever I do that the cloned repository adds another folder layer that I don’t want. For instance if I create a folder \BareRepo and then clone it into \Production then I end up with \Production\BareRepo. My code in SAS is expecting files to be in specific folders and I’d prefer not to have to modify the code to have it point to a different place.
I can't seem to figure out how to use Git in my environment without having to restructure my application. Is there a way to do that and if so, how?
Upvotes: 1
Views: 67
Reputation: 9597
You can specify the directory when you clone the repo. So if you are cloning BareRepo, you can do this:
git clone git://path/to/bare/repo directoryName
This will clone the BareRepo into a directory called 'directoryName'.
Upvotes: 1