How to Fork a GitHub Repository

preview_player
Показать описание
Here's a quick tutorial on how to fork a GitHub repo.

# How to Fork on GitHub

In this GitHub Fork example, I start right from scratch. First, I register a new GitHub account named citizen-developer, and then I go to the cameronmcnz rock-paper-scissors GitHub Repo an fork it.

After that, I perform a git clone on the forked repository. I add a file or two to the repo, do a git add and a git commit, and then push it all back to the citizen-developer forked repo.

Hoping to get those changes back to the original repo, the citizen-developer does a GitHub pull request. Then I log into the cameronmcnz account and merge the pull request. So the original repository gets the changes that were done on the GitHub fork.

It's only 7 or 8 minutes. Check out this short video, and you'll learn everything you need to know about how to fork a GitHub repo.

0:19 Care a new GitHub account named citizen-developer
1:54 Fork the GitHub repo
2:41 Clone the GitHub fork
4:36 Push changes to fork back to GitHub
6:10 Perform a pull request
7:12 Merge the pull request

Enjoy. And Happy Git!
Рекомендации по теме
Комментарии
Автор

Much better Tutorial than the other ones on that subject. Very easy to understand. Thanks

CallTheDay
Автор

Great job man! Easy and straight forward.

westmainz
Автор

Thanks for great nice and clear tutorial!

kevinshao
Автор

i'm glad to watch this video, thanks man😀

afshinshoja
Автор

I took an intro to web scripting class last semester and I forgot how to do this already 😅. I have a folder with the same name as the one I wanted to clone 😬 so I added the path for the folder I wanted to clone on git and the cloning worked! 😭😭🙏🙏🙏

Thank you so much for the refresher!

rosab
Автор

Great video, to the point video, thanks for sharing with us #mrnams

MrNams