Skip to content

adding 3.3 Clone a repository in the collaborating.qmd #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/screenshots/clone_VScode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshots/clone_github_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions collaborating.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,30 @@ A fork is a copy of somebody’s GitHub repository. You can fork a repo and work

You cannot directly affect (or damage) the original project.

## Clone a repository
Besides forking a repository, you can also clone a repository from GitHub.com to your local computer. Cloning a repository creats a full copy of all files in the repository at that point in time.

### Using Git

First, navigate to the directory where you want to clone the repository:

`cd /path/to/your/directory`

Next, copy the repository URL from GitHub (e.g., using HTTPS), and run the following:

`git clone https://github.com/BecksLab/tutorial_github.git`

### Using GitHub desktop

To clone the repository with GitHub Desktop, click *Open with GitHub Desktop* under the *Code*.
![](assets/screenshots/clone_github_desktop.png)

### Using VScode

To clone a repository in VScode, select the *Clone Repository* button in the Source Control view. Then enter the repository URL copied from GitHub or select a repository from the list to clone to your computer.

![](assets/screenshots/clone_VScode.png)

## Creating pull requests

- Think of this as a 'track changes' version of the repository. It is possible to see how the 'new' version differs from the current (`main`) version and you can see what has been added and what has been removed.
Expand Down
Loading