YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Forking a Repository Solution - How to Use Git and GitHub

Get Embed Code
5 Languages

Showing Revision 3 created 05/25/2016 by Udacity Robot.

  1. Branches happen on a single repository.
  2. Of course, you can push and pull branches, but when you create one,
  3. you're creating it on one single repository, so
  4. the only one that could possibly fit that mold is this one.
  5. We have one branch and here we've got a second branch.
  6. So this one is a branch.
  7. Cloning involves taking an existing repository and making one just like it.
  8. The original repository could either be remote, like in this case, so
  9. here we cloned from GitHub to local.
  10. Or you could even clone a local repository into another spot on your computer.
  11. We haven't really talked about this, so this one was probably a little tricky.
  12. This one looks a lot like a clone too, but
  13. remember, we are cloning our repository from GitHub onto GitHub.
  14. You do that using GitHub's built-in fork feature.
  15. Forking is only used within the context of GitHub, taking an existing GitHub
  16. repository and making a copy of it, whereas clone works on any two repositories.