Forking a GitHub Repository
Key Takeaways
The video demonstrates how to fork a GitHub repository and delete a fork, using the example of forking the Open Source Data Science Masters repository. It covers the reasons for forking a repository, including copying files or contributing to the original repository, and explains the process of forking, modifying, and sending a pull request.
Full 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 op 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'll be done so what actually happened here you simply made a copy of the repo in your own account that copy includes all the repository files and even the commit history is preserved there's also will 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 to copy 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 one is that you Fork the repo which we've already done step two is that you make a modification to your fork of the repo perhaps by adding a new link and step three 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 Fork 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
Original Description
This is video #5 in the Data School series, "Introduction to Git and GitHub." Relevant links and the full transcript are below. Playlist: http://www.youtube.com/playlist?list=PL5-da3qGB5IBLMp7LtN8Nc3Efd4hJq0kD
== LET'S CONNECT! ==
Blog: http://www.dataschool.io
Newsletter: http://www.dataschool.io/subscribe/
Twitter: https://twitter.com/justmarkham
GitHub: https://github.com/justmarkham
== LINKS RELATED TO THIS VIDEO ==
Open Source Data Science Masters: https://github.com/datasciencemasters/go
Forking a Repo: https://help.github.com/articles/fork-a-repo
Deleting a Repo: https://help.github.com/articles/deleting-a-repository
== 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 doe
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Data School · Data School · 3 of 60
1
2
▶
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Setting up Git and GitHub
Data School
Navigating a GitHub Repository - Part 1
Data School
Forking a GitHub Repository
Data School
Creating a New GitHub Repository
Data School
Copying a GitHub Repository to Your Local Computer
Data School
Committing Changes in Git and Pushing to a GitHub Repository
Data School
Syncing Your GitHub Fork
Data School
Allstate Purchase Prediction Challenge on Kaggle
Data School
Troubleshooting: Updates Rejected When Pushing to GitHub
Data School
Hands-on dplyr tutorial for faster data manipulation in R
Data School
ROC Curves and Area Under the Curve (AUC) Explained
Data School
Going deeper with dplyr: New features in 0.3 and 0.4 (tutorial)
Data School
What is machine learning, and how does it work?
Data School
Setting up Python for machine learning: scikit-learn and Jupyter Notebook
Data School
Getting started in scikit-learn with the famous iris dataset
Data School
Training a machine learning model with scikit-learn
Data School
Comparing machine learning models in scikit-learn
Data School
Data science in Python: pandas, seaborn, scikit-learn
Data School
Selecting the best model in scikit-learn using cross-validation
Data School
How to find the best model parameters in scikit-learn
Data School
How to evaluate a classifier in scikit-learn
Data School
What is pandas? (Introduction to the Q&A series)
Data School
How do I read a tabular data file into pandas?
Data School
How do I select a pandas Series from a DataFrame?
Data School
Why do some pandas commands end with parentheses (and others don't)?
Data School
How do I rename columns in a pandas DataFrame?
Data School
How do I remove columns from a pandas DataFrame?
Data School
How do I sort a pandas DataFrame or a Series?
Data School
How do I filter rows of a pandas DataFrame by column value?
Data School
How do I apply multiple filter criteria to a pandas DataFrame?
Data School
Your pandas questions answered!
Data School
How do I use the "axis" parameter in pandas?
Data School
How do I use string methods in pandas?
Data School
How do I change the data type of a pandas Series?
Data School
When should I use a "groupby" in pandas?
Data School
How do I explore a pandas Series?
Data School
How do I handle missing values in pandas?
Data School
What do I need to know about the pandas index? (Part 1)
Data School
What do I need to know about the pandas index? (Part 2)
Data School
How do I select multiple rows and columns from a pandas DataFrame?
Data School
Machine Learning with Text in scikit-learn (PyCon 2016)
Data School
When should I use the "inplace" parameter in pandas?
Data School
How do I make my pandas DataFrame smaller and faster?
Data School
How do I use pandas with scikit-learn to create Kaggle submissions?
Data School
More of your pandas questions answered!
Data School
How do I create dummy variables in pandas?
Data School
How do I work with dates and times in pandas?
Data School
How do I find and remove duplicate rows in pandas?
Data School
How do I avoid a SettingWithCopyWarning in pandas?
Data School
How do I change display options in pandas?
Data School
How do I create a pandas DataFrame from another object?
Data School
How do I apply a function to a pandas Series or DataFrame?
Data School
Getting started with machine learning in Python (webcast)
Data School
Q&A about Machine Learning with Text (online course)
Data School
Your pandas questions answered! (webcast)
Data School
Machine Learning with Text in scikit-learn (PyData DC 2016)
Data School
Write Pythonic Code for Better Data Science (webcast)
Data School
Web scraping in Python (Part 1): Getting started
Data School
Web scraping in Python (Part 2): Parsing HTML with Beautiful Soup
Data School
Web scraping in Python (Part 3): Building a dataset
Data School
🎓
Tutor Explanation
DeepCamp AI