Skip to content

chris-alexiuk-1/GitGood-Forking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

GitGood-Forking

What is forking, anyway? 🍴

So, you'd like to fork a repository!

First, let's quickly discuss what forking is:

Forking is the process by which you can clone a repository, including the visibility settings and all the code, but detatch it from the original ownders so that you can make changes, and push those changes as you want!

So let's go through the steps we need to take to fork a repository!

How to Fork a Repository:

  1. Navigate to the top right of the repository, and click on the "Fork" button:

image

  1. From here you should see a window that displays a lot of default information. You can leave these options the same, or you can modify them to your hearts content!

image

  1. You should now see a window letting you know your fork is in progress:

image

  1. That's it! You've forked the repository! You now have all the code, and the commit history of that fork.

Syncing Your Fork ♻️

Let's say the original repository owners make some changes to their repository, and you'd like those changes to be present in your fork. You might think you have to "re-fork" the repository, but GitHub allows you to "Sync fork" instead! Let's check out how to do that:

  1. First of all, head to your fork on GitHub.com. We're looking for this banner:

image

  1. Notice how we see that this branch is "1 commit behind", we can click on the "Sync fork" button, and then the big green "Update branch" button to sync our fork with the original repository!

image

  1. That's it, you're done! 🥳

Summary

And there you have it, that's all it takes!

About

A repository that explains how to Fork it!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages