Compartmentalized | Documented | Extendible | Reproducible | Robust |
Here I will cover a few more come Git tasks and show some straight-forward ways to do these tasks
This material was covered in the beginning of one of the 2020 NWFSC workshop sessions:
There are two easy ways to do this. Use the one that seems more logical to you.
Method 1.
+
in top right and click import repository
. Paste in the url and give your repo a name.New Project
on right, then Import Repository
tab, then click Repo by URL
. Paste in url and give repo a name.New Project
. Then select Version Control
and paste in the url of your repository’s url. For example, https://github.com/<youraccount>/Test
Method 2.
Steps 1-4 are the same but you can swap step 5 and 6.
New Project
. Then select Existing Directory
and navigate to the directory where you just saved the repo.You can also clone someone elses repo directly into RStudio or GitHub Desktop and then “Publish” to GitHub or GitLab. I am not going to show that but I show that on this page. For GitLab, it will require issuing Git commands from a terminal. Note, in my experience, method 1 or 2 above is the way to avoid Git-misery as a Git beginner.
Let say you want to make a copy of a repository and use it as a template to make something else. And you don’t want the history!
.git
folder is hidden.