BookmarkSubscribeRSS Feed
eddieleung305
Obsidian | Level 7

Dear experts,

 

I would like to know if there is any way can create Git projects from SAS EG or SAS Studio.

According to the SAS manuals, they detail the steps to clone the repository to a local repository but the pre-requisite is you have the project created in Git before. May I know does EG and SAS Studio support the creation of a new Git project?

 

Please share your experience if you have anything want to share with us.

 

Thank you.

Eddie

 

 

5 REPLIES 5
sbxkoenk
SAS Super FREQ

Hello @eddieleung305 , 

 

There's full GIT integration (i.e. built-in GIT support) in both SAS Enterprise Guide and SAS Studio.

 

There's definitely a SAS function to create a new Git branch (in an existing Git repository).

However, I have no knowledge about a SAS function to create a new repo / repository (i.e. the Git project itself as you call it).

 

I think @ChrisHemedinger can help you out on this specific request.

 

BR,

Koen

SASKiwi
PROC Star

A Git repository needs to be created in the first place and this is not something a single end user would do. It is more of an administration responsibility.  You should find out how Git is used in your company. Do they use Github, Azure DevOps or some other software? Seek advice from your Change Management specialists and piggyback on the infrastructure they have already created. That's what we have done. 

eddieleung305
Obsidian | Level 7

Thank you for your response. Do you mean it is required to create the project on GitHub first, and then sync the repository to a local repository?

 

In other words, there is no way to create a Github project from EG / SAS Studio because it is not the way SAS client handle Git project?

ChrisHemedinger
Community Manager

In SAS Viya, SAS Studio supports Git initialize.

ChrisHemedinger_0-1698353060854.png

In SAS programming language, you can use the GIT_INIT_REPO() function to create a Git repo in a folder.

I do always recommend having the Git tools available, such as Git Bash or Git GUI or GitHub Desktop (for GitHub). But I also know that not all SAS environments support access to such tools.

SAS Hackathon registration is open! Build your skills. Make connections. Enjoy creative freedom. Maybe change the world.
SASKiwi
PROC Star

You are using the wrong terminology. There's no such thing as a Git "project". You start by creating a Git repository, then you create branches in the repo for related changes. A branch could contain a minor change, a major change, or a whole sequence of changes which you could describe as a "project". It is more likely that a project would be spread over multiple branches however.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 927 views
  • 0 likes
  • 4 in conversation