Skip to content

Commit bd3ede0

Browse files
Reorder lists
Signed-off-by: Bryan Behrenshausen <[email protected]>
1 parent 6fd4ae6 commit bd3ede0

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

website/docs/CloneStudioViya.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
# Using the Repo with SAS Studio on SAS Viya
22
## Create a forked copy of sas-code-examples
33
1. If you do not have a profile in GitHub associated with your SAS email account, visit `https://github.com/signup`. Create an account with your SAS email and a username of your choice.
4-
1. Access the public [sas-code-examples repository](https://github.com/sassoftware/sas-code-examples)
5-
1. Click the down arrow next to **Fork** and select **Create a new fork**.
6-
1. It may be helpful to add a prefix to the repository name to distinguish it from the main repository, for example: `name-sas-code-examples`. The branch name cannot include spaces. Click **Create fork**.
7-
1. Confirm you are working in your branch, which is a personal copy of the repository.
4+
2. Access the public [sas-code-examples repository](https://github.com/sassoftware/sas-code-examples)
5+
3. Click the down arrow next to **Fork** and select **Create a new fork**.
6+
4. It may be helpful to add a prefix to the repository name to distinguish it from the main repository, for example: `name-sas-code-examples`. The branch name cannot include spaces. Click **Create fork**.
7+
5. Confirm you are working in your branch, which is a personal copy of the repository.
88

99
## Create a Git Profile in SAS Studio
1010
You can create a Git profile in SAS Studio using SSH keys or HTTPS. See [Working with Git Profiles](https://go.documentation.sas.com/doc/en/webeditorcdc/default/webeditorug/p0urbfmbb9lkpdn15yzavxdk1lgk.htm) for details. You can also view [Git Integration with SAS Studio](https://video.sas.com/detail/videos/sas-viya-quick-start/video/6358959868112/git-integration-with-sas-studio?autoStart=true) to see a demonstration of configuring a Git profile with SSH Keys.
1111

1212
## Clone the repository in SAS Studio
1313
1. In your forked repository on GitHub.com, select the green **Code** button. On the **Local** tab, select either **SSH** or **HTTPS** depending on your authentication method. Select <img width="12" height="14" alt="Copy (2)" src="https://github.com/user-attachments/assets/18939792-199e-4bf5-aaa9-7d888cee73fe" />
1414
(Copy) to copy the repository reference.
15-
1. Return to SAS Studio. Click <img width="12" height="14" alt="Server" src="https://github.com/user-attachments/assets/8b22b5a7-ad8e-458d-81bc-6fc9ac955cab" /> (**SAS Server** or **Explorer**) in the left pane. Navigate to a location with write access, then right-click the folder and select **New folder**. Name the folder `sas-code-examples` and click **OK**.
16-
1. Select <img width="12" height="14" alt="GitRepository" src="https://github.com/user-attachments/assets/521a9569-1a6f-48fc-b48e-7ac0ce1470d1" /> (**Git Repositories**) in the left pane and click **Clone**.
17-
1. Paste the repository URL copied previously from GitHub. Next, click <img width="14" height="12" alt="Folder" src="https://github.com/user-attachments/assets/5fc761e6-1ff4-4f82-8dec-210c3e829e7b" />. Navigate to the `sas-code-examples` folder created earlier and click **OK**.
18-
1. `sas-code-examples` is now listed in the Git Repositories pane, and a new tab opens. You can also double click the repository name in the left pane to open it. This is where you can view the staged and unstaged changes in your local repository and pull or push changes to the external Git repository.
15+
2. Return to SAS Studio. Click <img width="12" height="14" alt="Server" src="https://github.com/user-attachments/assets/8b22b5a7-ad8e-458d-81bc-6fc9ac955cab" /> (**SAS Server** or **Explorer**) in the left pane. Navigate to a location with write access, then right-click the folder and select **New folder**. Name the folder `sas-code-examples` and click **OK**.
16+
3. Select <img width="12" height="14" alt="GitRepository" src="https://github.com/user-attachments/assets/521a9569-1a6f-48fc-b48e-7ac0ce1470d1" /> (**Git Repositories**) in the left pane and click **Clone**.
17+
4. Paste the repository URL copied previously from GitHub. Next, click <img width="14" height="12" alt="Folder" src="https://github.com/user-attachments/assets/5fc761e6-1ff4-4f82-8dec-210c3e829e7b" />. Navigate to the `sas-code-examples` folder created earlier and click **OK**.
18+
5. `sas-code-examples` is now listed in the Git Repositories pane, and a new tab opens. You can also double click the repository name in the left pane to open it. This is where you can view the staged and unstaged changes in your local repository and pull or push changes to the external Git repository.
1919

2020
## Create/modify programs and update personal repository
2121
1. In SAS Studio, click <img width="12" height="14" alt="Server" src="https://github.com/user-attachments/assets/2372856a-165c-48c6-90d0-b96c069c1c48" /> in the left pane to open the **Explorer** or **SAS Server**. Navigate to `sas-code-examples` folder where you cloned your personal forked version of the repository.
22-
1. You can open existing programs, make modifications, and save changes – just as you would any other local files. You can also add new programs. Any changes you make are saved only in your local repository.
23-
1. Select <img width="12" height="14" alt="GitRepository" src="https://github.com/user-attachments/assets/0fec2580-827d-475d-87dc-23ec269d124f" /> (**Git Repositories**) and double-click `sas-code-examples` to open the repository in a tab. Any programs that have been modified or created will be listed in the _Unstaged Changes_ list. Select one or more programs from the list and use the down arrow icons to move them to the _Staged Changes_.
24-
1. View the program on the right to examine highlighted portions of the code that have been added or removed.
25-
1. Type a message in the **Commit Comment** box that describes the modifications made to the program(s), then click **Commit**.
22+
2. You can open existing programs, make modifications, and save changes – just as you would any other local files. You can also add new programs. Any changes you make are saved only in your local repository.
23+
3. Select <img width="12" height="14" alt="GitRepository" src="https://github.com/user-attachments/assets/0fec2580-827d-475d-87dc-23ec269d124f" /> (**Git Repositories**) and double-click `sas-code-examples` to open the repository in a tab. Any programs that have been modified or created will be listed in the _Unstaged Changes_ list. Select one or more programs from the list and use the down arrow icons to move them to the _Staged Changes_.
24+
4. View the program on the right to examine highlighted portions of the code that have been added or removed.
25+
5. Type a message in the **Commit Comment** box that describes the modifications made to the program(s), then click **Commit**.
2626
> [!NOTE]
2727
> It is a good practice to stage one program at a time to provide an appropriate comment for the new commit. Only commit multiple programs at once if a single comment applies to all changes.
28-
1. Click **Push Main** to push the commits to your personal remote repository in GitHub.
29-
1. Return to your forked copy of the repository on GitHub.com and refresh the page to verify the changes have been synced.
28+
6. Click **Push Main** to push the commits to your personal remote repository in GitHub.
29+
7. Return to your forked copy of the repository on GitHub.com and refresh the page to verify the changes have been synced.
3030

3131
## Merge changes into public repository
3232
At any point you can request to merge your personal repository changes with the official public repository. In GitHub, this is called a Pull Request (PR).
3333
1. Refresh the GitHub page for your personal forked repository. The following message indicates that you have updates in your branch that are not year in the public repository. <img width="758" height="100" alt="image" src="https://github.com/user-attachments/assets/15299b74-3db3-4283-a4e7-728ca899647f" />
3434
1. Select **Contribute** > **Open pull request**.
35-
1. You may provide a description to explain the changes made. Note that the person approving your request will be able to review all file changes to ensure all contribution rules are followed and that there are no conflicts with other updates.
35+
2. You may provide a description to explain the changes made. Note that the person approving your request will be able to review all file changes to ensure all contribution rules are followed and that there are no conflicts with other updates.
3636
> [!IMPORTANT]
3737
> Your contribution must meet the project's [contribution guidelines](../../CONTRIBUTING.md). The last line in the PR description must be the following text: `Signed-off-by: Name <email.address>`
38-
1. Click **Create pull request**. You will likely see the following message, which can be ignored: <img width="509" height="198" alt="image" src="https://github.com/user-attachments/assets/73d765b2-b15d-450f-97ef-d9223a2c97bd" />
39-
1. The PR will go to the repository maintainers for approval. If there are issues with your requested changes, you may be asked in the comments of the PR to make further edits and recommit your file(s).
40-
1. Once all changes are approved, they will be merged into the main repository. You will see the following message in your PR: <img width="561" height="144" alt="image" src="https://github.com/user-attachments/assets/e41b8172-9397-49f4-8acd-7a090e32aefb" />
38+
3. Click **Create pull request**. You will likely see the following message, which can be ignored: <img width="509" height="198" alt="image" src="https://github.com/user-attachments/assets/73d765b2-b15d-450f-97ef-d9223a2c97bd" />
39+
4. The PR will go to the repository maintainers for approval. If there are issues with your requested changes, you may be asked in the comments of the PR to make further edits and recommit your file(s).
40+
5. Once all changes are approved, they will be merged into the main repository. You will see the following message in your PR: <img width="561" height="144" alt="image" src="https://github.com/user-attachments/assets/e41b8172-9397-49f4-8acd-7a090e32aefb" />
4141

4242
## Keep personal fork in sync with main project repository
4343
You can continue to work with the same personal fork of the repository for future updates; however, it is very important to keep it in sync with the main project repository. This will help to avoid conflicts when making pull requests.
4444
1. In GitHub.com, check your branch for the following message that indicates there are updates in the public repository that have not been synced with your branch: <img width="737" height="94" alt="image" src="https://github.com/user-attachments/assets/6d54920f-8b14-41be-83c9-40ca98ad7925" />
45-
1. Click **Sync fork** > **Update branch**. This will update your branch stored in GitHub.
46-
1. In SAS Studio, select <img width="12" height="14" alt="GitRepository" src="https://github.com/user-attachments/assets/6aad0af8-65ca-452c-b96f-7d8886a030ad" /> (**Git Repositories**) and open your cloned `sas-code-examples` repository. Then click **Pull** to sync your local files with the remote repository.
45+
2. Click **Sync fork** > **Update branch**. This will update your branch stored in GitHub.
46+
3. In SAS Studio, select <img width="12" height="14" alt="GitRepository" src="https://github.com/user-attachments/assets/6aad0af8-65ca-452c-b96f-7d8886a030ad" /> (**Git Repositories**) and open your cloned `sas-code-examples` repository. Then click **Pull** to sync your local files with the remote repository.

0 commit comments

Comments
 (0)