Great article @larsarne! I think you highlighted everything really well.
@epower I apologize for the limitations for SASStudio 3.x and 9.4 with regards of the use of local only repositories. The git functionality was quite new during that time and we were unable to get all of the functionality we wanted to into SASStudio 3.x. That being said, there is a way to get you off of the sidelines and use local only repositories in SASStudio 3.x and SAS 9.4. You can utilize the SAS git functions to accomplish this. Open a SAS program tab within SASStudio and enter the following code (you'll need to edit the parameters):
data _null_;
rc= GIT_INIT_REPO("<pathOfFolderYouWantToBeALocalRepo>", "<initialBranchName>", "<remoteURLParameter>");
run;
The last parameter is optional but in this case, you'll need to enter something (can be anything/random text) in order to be able to register the repository with SASStudio. The limitation you're running into is the inability to use the UI to initialize a directory as a local repository and the ability to open a local only repository (a repo without a remote set).
Once you have initialized the local repository, you can navigate to the git pane within SASStudio, click on the dropdown and select "Open a Local Repository". Find your local repo within the file system and select OK.
Now you can use your local repo without having an actual remote repository.
If you decide in the future to set a remote repository URL for your local repo, there is another function for that:
data _null_;
rc = GIT_SET_URL("<localRepoPath>", "<remoteRepoURL>");
run;
Let me know if you have any questions. Always happy to help.
Danny
... View more