Clone a Repo to Beskar
Problem to Solve
I want to copy my fork of a course level repo from GitHub to Beskar so that I can start working on it in JupyterHub.
Recipe
-
On GitHub, go to the main page of the repo that you want to clone. For an assignment repo, make sure you're looking at your fork, not at the instructor's original.
- If you are reading this on the GitHub site: to keep these instructions visible as you go, right-click on the repo name (e.g.,
A-01-username
) at the very top of the window, and choose "Open in new tab".- Or, if you've got loads of screen real estate, "Open in new window" so you can put them side-by-side.
- Do make sure you're looking at your fork, not at the original!
- If you are reading this on the GitHub site: to keep these instructions visible as you go, right-click on the repo name (e.g.,
-
Click the big green "Code" button near the top of the repo main page.
- That should reveal a popup dialog.
-
Select the "Local" tab in that dialog if it's not already selected.
-
Select the "GitHub CLI" sub-tab.
-
Click the two-rectangles "copy" icon to the right of the text box that contains something analogous to
gh repo clone UNCG-PHY-351-S25/A-01-username
.- A little tooltip that says "Copied!" should appear, briefly.
-
Open a Terminal (or switch to an already-open one) in your Beskar browser tab.
-
Verify that you are, in fact, in your home directory or life will get very awkward.
-
Paste the copied text in as a terminal command and hit return to execute it.
-
List the directory's contents and you should see a new subdirectory with the name of your repo.