Forking a GitHub Repository

preview_player
Показать описание

== LET'S CONNECT! ==

== LINKS RELATED TO THIS VIDEO ==

== TRANSCRIPT ==

In this video, we're going to discuss how and why to fork a repository, and also how to delete a fork.

Forking is one of the simplest GitHub operations. In this case, we're going to fork the repo for the "Open Source Data Science Masters", which is basically just a Markdown document linking to good resources for learning data science topics.

To fork this repo, you just need to be logged into your GitHub account, and then you click "Fork". Wait a few seconds, and it will be done.

So, what actually happened here? You've simply made a copy of the repo in your own account. That copy includes all of the repository files, and even the commit history is preserved. There's also a link to the original repo that you forked, which is often called the "upstream repo".

So, why did we fork this repo? Usually, you fork a repo either because you just want a copy of the files, or because you intend to contribute to that repo. We'll talk more about collaboration in a future video, but basically, here's how it works:

Step 1 is that you fork the repo, which we've already done. Step 2 is that you make a modification to your fork of the repo, perhaps by adding a new link. And step 3 is that you send a "pull request" to the repo owner, asking them to pull your changes into their repo.

So to be clear, once you've forked a repo, your fork does not automatically stay in sync with the original upstream repo. I'll show you in a future video how to sync your fork with the upstream.

Also, you might have noticed that we did all of the forking in GitHub, not in Git. That's because forking is a GitHub concept. Nothing happened to your local machine just by virtue of forking a repo.

Finally, let's say you want to delete a fork. Simply click on "Settings", scroll to the bottom, and click "Delete".
Рекомендации по теме
Комментарии
Автор

It's 2022, and still, this video is very much informational. Thank you for teaching us the most straightforward thing our friends don't even tell us. we often get hesitant to ask simple doubts but thanks to you man!

Aaron.sharon
Автор

Wow this video is so on point, Thank you so much Dataschool.

ankitaburman
Автор

Thank you so much. This was a very helpful short and sweet video which helped me get on with my assignment. Thank you

treetyfarahmand
Автор

Thankyou for your clear explanation, you made it all very simple.

wayneholmes
Автор

thx for the video, am new to github etc. so searched how to fork and all the videos was like 15 minutes long for the same info you summarized in two minutes so thanks.

maybe dumb question but:
1) whats the difference between git & github? Aint they names for the same thing?
2) if the upstream fork were to be deleted, what would happen to the forked repo?

hassanjawad
Автор

TL&DR, Really awesome straight to the gol

MohamedDernoun
Автор

Suppose i ve a task that i ve made in csv and code as well, , now saying to 'submit and fork the repository to github id' what does it mean, ,what needs to be done??

harshaditya
Автор

Hi, All of these steps you mentioned here (at 1:41) can be done with a 'branch' instead of a fork, also. So what is the difference between a fork and a branch? I came to these videos because people at my company use git a lot and I wanted to understand how it works. But I hear them 'branch' a lot. I have not heard anyone use 'fork' before. Thank you very much for these helpful videos!

sdoken
Автор

How do you find that repo in GitHub? You just type "datasciencemasters" in the search bard?
I tried to find it but the list of repos(?) didn't list that repo.

causap
Автор

So like, I want to mirror a repository for an internal project that has become too large for Bitbucket's hard 2GB limit and experiment with deleting unused files from the entire git history. Would forking be a good way to do this or should I mirror it directly to test the effects?

Sistinical
Автор

How do I add files to from my local github to a forked repo in my online github account without creating a whole new repo?

MicroUrb
Автор

When I clicked fork on my repo for data scientist's toolbox class - absolutely nothing happened...What gives?

marksvalley
Автор

This video would be amazing if it bleeped it every time he said "fork" or "repo"

estern
Автор

forking is a GitHub concept - nothing happens on your local machine

volkergrotzinger
Автор

I hate when tutorials do not start from the beginning.

Herotruth
visit shbcf.ru