BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
cbo
Fluorite | Level 6 cbo
Fluorite | Level 6

Hi !

I am having a hard time helping  someone use git from SAS Studio 9.4 . For the context I am a beginner using SAS 9.4 and I have used git from the command line and other graphic tools.

 

The symptoms are :

* getting back on a versionned projet the operation "push" (or "send") is not possible with no explanation logs.

* the "commit" (or "validate") operation was done correctly and is versionned in the history

 

What we tried (me from a dummy project and the client from his project) :

* use command line from SAS Studio --> KO with the following codes

```

data _null_;
n = git_status("/user/CMB/gs120/test_git");
put n=;
run;

X git --version ;

CALL SYSTEM ('git --version');
%SYSEXEC ls

data _null_;
call system ('ls');
run;

```

* Use the equivalent a `git status` --> KO since I suppose we do note have SAS 6th update (9.4 M6)
```

data _null_; 
    n = git_status("Your-Repository"); 
    put n=; 
run; 

```

* try to set up a new clean remote and push our changes there --> for now KO for a copy all files to the empty cloned folder

 

Conclusion : it appears we can't find clue of what is happening in the local repository. So a solution could be to copy every file manually to a new clean repository... or are we missing something ?
Moreover, it seems we can't edit other files than .sas files. Does someone have a way to edit README, .gitlab-ci, etc... files in SAS Studio please ?

 

Thanks in advance for any help !

1 ACCEPTED SOLUTION

Accepted Solutions
cbo
Fluorite | Level 6 cbo
Fluorite | Level 6
Finally an answer was :

1) to create a new clean remote initiated with a Readme (important point).

2) clone this new repository in SAS Studio.

3) copy all the files needed to this repos, commit then push.

View solution in original post

1 REPLY 1
cbo
Fluorite | Level 6 cbo
Fluorite | Level 6
Finally an answer was :

1) to create a new clean remote initiated with a Readme (important point).

2) clone this new repository in SAS Studio.

3) copy all the files needed to this repos, commit then push.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 377 views
  • 0 likes
  • 1 in conversation