How to fork a repo on GitHub – 033

There are two primary reasons why you’d want to fork a repo.

  1. You want to submit a patch, or as the kids call it today, a Pull Request.
  2. You want to experiment with changes and save them up to your forked GitHub repo.

In yesterday’s tip, I opened an Issue about my your-moment-of-github-zen electron app not being usable on Windows. In the upcoming tips, you’ll see how you can fork a repo and submit a pull request. But first, you’ll need a fork of the repo.

Go to the Fork button located at the top right of the repo

Fork button in the upper right of a repo

Clicking the Fork button will display a message asking you to wait a few seconds…

Forking saraford/your-moment-of-zen wait message

When finished, you’ll notice that your new GitHub repo looks similar as before, but with one key difference. Under the name of the repo you’ll see “forked from” with the name of the repo you’ve forked this from.

repo has footnote that this was forked

2 thoughts on “How to fork a repo on GitHub – 033

  1. Oh!! You had a separate account so that you could fork one of your own GitHub repos. Ahhhhhh!

    Then you could rename and fork it back, I suppose.

    That would have done the history-preserving that I wanted when I split out a separate project from one that is being developed further for a different specific purpose. They will be refactored differently and never merged.

    I think I had better keep following these 🙂


    1. Hey, yes this is a separate account. I realized too late that I should have used a more descriptive separate account to show what was going on, and I didn’t want to go back and redo a bunch of images. Next time I’ll know better! I wanted to demo on a repo I have control over so I can show what it looks like on the maintainer’s end (i.e. the user who is reviewing the PRs and merging them).

      FWIW, it does not look like you can fork your own repos (using same account). I just tried on website, and just looks like at me. There’s also this SO article.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s