How to Fork My Repository

Simon Huang

Simon Huang

@simon

You cannot fork your own repository on GitHub. Here is a guide on how to fork your own repository:

1. Clone the repository

git clone https://github.com/[yourname]/template-repo.git new-project
cd new-project

2. Create a new blank repository on GitHub

  1. Go to https://github.com/new
  2. Fill in the name of your new repository.

3. Add the new repository as a remote

git remote remove origin
git remote add origin https://github.com/[yourname]/new-project.git

4. Push your changes

git push -u origin main

5. Add the original repository as upstream

git remote add upstream https://github.com/[yourname]/template-repo.git
Super Svelte Starter

© 2025 Super Svelte Starter All Rights Reserved.