Desktop productivity for business analysts and programmers

GIT Version Control Integration with SAS Enterprise Guide 7.13

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 148
Accepted Solution

GIT Version Control Integration with SAS Enterprise Guide 7.13

Hello All,

Please can any one provide some info on below

How to setup the SAS Enterprise Guide 7.13 Integration with Bit Bucket Server

Reference to the below sas article I was able to integrate from SAS Enterprise Guide 7.13 to GIT, however I am required to utilize the SAS Enterprise Guide integration to bit bucket server.

I want the version control of the sas code and collaboration among the team members on a project we are working on

http://support.sas.com/resources/papers/proceedings14/SAS179-2014.pdf

I would appreciate if you can provide me some info how to impement this

Thank you


Accepted Solutions
Solution
‎06-16-2017 03:53 PM
SAS Super FREQ
Posts: 271

Re: GIT Version Control Integration with SAS Enterprise Guide 7.13

I suggest starting with the Bitbucket documentation.  For example, here is how you would clone a repository to your local machine:

https://confluence.atlassian.com/get-started-with-bitbucket/clone-a-repository-861178563.html

 

After making changes to your .sas files in the locally cloned repository using EG, here is how you could commit the changes and push them back to Bitbucket:

https://confluence.atlassian.com/get-started-with-bitbucket/push-code-to-bitbucket-861185309.html

 

Or you could commit the changes directly from within EG (as documented in the paper you referenced), then push using Git command-line (as demonstrated in previous link), or using a Git GUI, such as Git Extensions, SourceTree, etc.

 

Again, working with cloud-based Git repositories (such as Bitbucket, Github, etc.) in EG is almost identical to any other remote Git repository.  You clone it to the client, work out of your locally cloned repository, commit changes to your locally cloned repository, then push the commits back to your remote origin repository (Bitbucket in this case).

 

Casey

View solution in original post


All Replies
SAS Super FREQ
Posts: 271

Re: GIT Version Control Integration with SAS Enterprise Guide 7.13

Hi @sasprofile,

 

You work with a Bit Bucket (or Github, etc) project the same as you do any other remote Git repository.  You will need to clone the repository to your local machine (using external tool), work on (edit, submit, etc) the .sas files out of your locally cloned repository using EG, commit changes to your .sas files in your local repository from within EG (or external tool), then push the commits back to your remote repository when ready to "share with the world" (colleagues).

 

Casey

Frequent Contributor
Posts: 148

Re: GIT Version Control Integration with SAS Enterprise Guide 7.13

Thank you Casey for your prompt reply

 

Do you have any kind of doc or artice to perform these steps you provided

 

Thank you

 

Solution
‎06-16-2017 03:53 PM
SAS Super FREQ
Posts: 271

Re: GIT Version Control Integration with SAS Enterprise Guide 7.13

I suggest starting with the Bitbucket documentation.  For example, here is how you would clone a repository to your local machine:

https://confluence.atlassian.com/get-started-with-bitbucket/clone-a-repository-861178563.html

 

After making changes to your .sas files in the locally cloned repository using EG, here is how you could commit the changes and push them back to Bitbucket:

https://confluence.atlassian.com/get-started-with-bitbucket/push-code-to-bitbucket-861185309.html

 

Or you could commit the changes directly from within EG (as documented in the paper you referenced), then push using Git command-line (as demonstrated in previous link), or using a Git GUI, such as Git Extensions, SourceTree, etc.

 

Again, working with cloud-based Git repositories (such as Bitbucket, Github, etc.) in EG is almost identical to any other remote Git repository.  You clone it to the client, work out of your locally cloned repository, commit changes to your locally cloned repository, then push the commits back to your remote origin repository (Bitbucket in this case).

 

Casey

Frequent Contributor
Posts: 148

Re: GIT Version Control Integration with SAS Enterprise Guide 7.13

Hi Casey, Thank you very much for the detail information you provided. The steps you provided works the way as you suggested, however am exploring another option of communicating directly with bit bucket repository from within the SAS Enterprise Guide 7.13. by the way please can you tell me what is the purpose of the below option in SAS Enterprise Guide 7.13. Tools>Options>Program History > Git Settings > User name : and User email: Thank you
SAS Super FREQ
Posts: 271

Re: GIT Version Control Integration with SAS Enterprise Guide 7.13

EG does not currently directly communicate with cloud-based Git repository services, such as Bitbucket, Github, etc.  EG directly works with locally cloned Git repositories, regardless of where they are cloned from (Bitbucket, Github, in-house remote origin, or any other repo).

 

The User name and User email settings in Tools>Options>Program History>Git Settings are passed to Git, so that when you commit changes, others see who made the changes.

Frequent Contributor
Posts: 148

Re: GIT Version Control Integration with SAS Enterprise Guide 7.13

Thank you so much Casey for all your help
SAS Super FREQ
Posts: 271

Re: GIT Version Control Integration with SAS Enterprise Guide 7.13

You are welcome!  Glad to help.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 7 replies
  • 288 views
  • 6 likes
  • 2 in conversation