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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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