Skip to content

Latest commit

 

History

History
51 lines (26 loc) · 2.08 KB

gitclone.md

File metadata and controls

51 lines (26 loc) · 2.08 KB

<<< Previous | Next >>>

Making a copy of a GitHub repo to work on locally

Cloning

A clone is a local copy of a repository.

(A fork is a copy of a repository, on GitHub.)

alt text

git clone [URL of your GitHub repo]

This clones a remote repo to your computer so you can customize it to your taste.

First, make sure you are out of GitPractice before you clone. Let's navigate to the Desktop.

Clone the repo for my hypothetical course syllabus so we can see what cloning a repository is like!

git clone https://github.com/pswee001/Syllabus

Also, you can use the GUI (graphical user interface) on GitHub (buttons on the web page) to do the same thing. There should be a little "clone or download" button near the top right of each repo.

You can find many of the workshops from this week linked in the Digital Fellows' curriculum page. You can clone individual repositories of those workshops you might wish to revisit or that you might wish to copy to teach yourself.

Challenge

  • git push your updates to the syllabus so they show up on your Github.com account:

  • Create a new repository at github.com. (this is your repository)

  • Give it the same name as as the repository you cloned. Don't initialize it with a README, .gitignore, or license.

  • git remote set-url origin https://github.com/your-account/your-repository.git Push the local repository to your repository on github.

don't forget! you must add, commit, before pushing!

  • git push origin master

<<< Previous | Next >>>

Glossary ~ ~ ~ Helpful commands