SAS Viya - Git Integration
SAS Viya Git Integration
This guide explains how to set up and use Git integration in SAS Viya.
Sign In
Navigate to SAS Visual Analytics.
Log in using your RDCRN credentials.
Create a Git Profile
Access Git Configuration
Click the Navigation Bar (nine dots at the top-left corner):
Select Develop Code and Flows:
Manage Git Connections
Click Options at the top-right corner.
Select Manage Git Connections.
Add Git Profile
Connecting Git via SSH
Follow instructions at Git SSH Connection Guide.
Connecting Git via HTTPS
(1) Log in to GitHub with your credentials.
(2) Visit GitHub Personal Access Tokens.
(3) Click Generate new token > Generate new token (classic).
(a) Set the Expiration Date as required.
(b) Under Select Scopes, check repo and user. Check other scopes if applicable
(4) Scroll to the bottom and click Generate token.
(5) Save the token immediately as it becomes invisible later.
(6) Enter your GitHub credentials in SAS Viya, using the token as the password
Manage Repositories
Click the Git Repositories Pane in SAS Viya.
Add a new repository or clone an existing one from GitHub.
Commit and Push Changes
Staging Changes
Single File:
Double-click the file under Unstaged Changes in the Commit Tab.
Alternatively, click the Left Arrow Icon.
All Files: Click the Right Arrow Icon.
Commit Changes
Enter a Commit Message in the text box under Staged Changes.
Click Commit at the lower-right corner of the message box.
Push Commits
Ensure you are a collaborator in the GitHub repository to push commits successfully.
References
SAS Enterprise Guide Git Integration: The operations in SAS Viya are similar to those described in the SAS Enterprise Guide Git Integration documentation.
· About Git Integration in SAS Enterprise Guide
· Cloning and Adding Git Repositories
· Understanding the Git Repository Tab in SAS Enterprise Guide
· Committing Changes to Your Local Repository
· Resetting Your Local Repository
· Working with Branches in Git