BookmarkSubscribeRSS Feed
TorOve
SAS Employee

In Enterprise Guide v8.2/3 you can save your code versions into Git using HTTPS (with username and password) as logon method. In SAS StudioV, by default there is only SSH method available. But by changing the configuration slightly in Environment Manager, you can enable the usage of HTTPS as well. Note that SSH is considered more secure than HTTPS. After the change, the Git connection screen should have both SSH and HTTPS as shown below:

 

Juletip_11_image_1.png

 

When you add a profile you can then choose HTTPS, give it a name (no spaces) and add the username, email and password, as it is registered when you login to for example the github application on web (https://github.com/).

 

The steps to enable this for SAS StudioV is simple. The first step though is to go to https://github.com and create an account, if you do not already have that:

  1. Open Viya environment Manager. You will likely need to be member of the SAS Viya Administrator group.
  2. Go to Configuration
  3. Select all services in listbox and search for "Studio". Select "SAS Studio Viya".
  4. In right handside canvas, search for "git" and you find section "sas.studiov".
  5. Press the edit "pen" to the right of the section, navigate to "allowGitPassword" and enable it.
  6. Press save.

Then open SASStudioV and go to the GIT section (left handside menu, at the bottom).

Go to the part where you edit an existing profile, or create a new one.

Here you now can switch between "SSH" (default) or HTTPS (just enabled).

 

If you have a SSH profile registered, the properties are moved to HTTPS when that is selected.

The paremeters are typically (example values below for github):

Profile name: github_TorOveKilnes

User name: <username in Github>

Email: <email address registered for the user name>

Password: <Your password>

 

Then register a local github repository and use github integration as of documentation.

Note that the branch in github is named "master" while the defaul github name often is "main".

 

Useful documentation:

If you like to use SSH authentication, see Youtube video for more info. This video second part is about using git in a SAS program for SAS StudioV:

                https://www.youtube.com/watch?v=v9jZmHP--1s

This video has some more info about the usage of Git in SAS StudioV and Enterprise Guide.

                https://video.sas.com/detail/video/6160681481001/git-integration-in-sas-studio-and-sas-enterprise-gu...

 

Documentation of properties, including allowGitPassword:

                https://go.documentation.sas.com/?cdcId=calcdc&cdcVersion=3.5&docsetId=calconfig&docsetTarget=n08025...

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Discussion stats
  • 0 replies
  • 795 views
  • 6 likes
  • 1 in conversation