You are currently viewing How to Clone a GitHub Repository for Beginners

How to Clone a GitHub Repository for Beginners



Clone a GitHub repository from scratch. Starting with installing NodeJS, npm, and git all the way to installing packages and running a local version of a project.

Note: NodeJS and npm are NOT necessary to clone a repo from GitHub. They are used in this video for running our cloned project locally. Not all GitHub projects use Node and npm, so they will not always be needed.

Video from Jesse Weigel.

Learn to code for free and get a developer job: https://www.freecodecamp.com

Read hundreds of articles on programming: https://medium.freecodecamp.com

And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp

source

This Post Has 25 Comments

  1. Jack Reynolds

    Hey – I got the following when trying to run your app: Failed to compile
    ./node_modules/material-ui/styles/withStyles.js
    Module not found: Can't resolve '@babel/runtime/core-js/map' in '/Users/team/Desktop/Projects/react-seating-manager/node_modules/material-ui/styles'
    This error occurred during the build time and cannot be dismissed.

  2. Darrell Fagan

    As Jesse mentioned, XCode is required, as git attaches to XCode's command-line tools. Some users may receive the following message at the command-prompt when attempting to execute git commands: "xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun". This is an example of that missing X-Code dependency. One can resolve this error by entering the following on the command-line to download the needed X-Code components:
    xcode-select –install

  3. Denniszen

    This was really good instruction. However, I would like if you could do something that doesn't work and tell us how you solve it, reason being I could not run the one I cloned.

  4. Ramtha

    CAn you also pls go for the VAPERSCOIN Wallet Install thru Github on MacOs? Thanks in advance

  5. Ebrima Sarr

    Hi I need your help, I follow you and is very easy to understand thank you ….. I clone a project at github but after I try to run start it not taking me to the browsers like yours and I try to run php artisan serve but it give error message is full download but I can’t open it in the browser

  6. thank you for the video, it does help with the little tidbits that you have added to help newbs along like myself. Kinda newb but need a refresher.

  7. Jed Garcia

    dumb question: Can you clone someone else's repository?

  8. how to do this clone if database is connected to backend
    can we run the clone from Github which is connected to the database ??
    or the process was the same as like above one please any one answer me ??

  9. Samhita Joshi

    Nice. Can you make a video on how to build a tool, a project/software from its source code?

  10. Nino P

    Very helpful ! A great personality for a teacher.

  11. Frank de Vries

    Awfall sound , to loud and constant overdrive, resonations is terrible on my ears, however interesting this maybe, I could not stand it no longer and exited. Sorry Jessy matey. Tweak your ptich and I will be back.

  12. Rishabh Malhotra

    Please for God sake ….. Do not waste time in elaborating…come straight to the point…It gets irritating…

Leave a Reply