Skip to content

Duplicating a repository through github's interface #123235

Discussion options

You must be logged in to vote

No direct duplicate function on GitHub's interface, but two options:

  1. Forking (Faster):

    • Go to the original repository.
    • Click "Fork" button (top right).
    • Creates a copy under your account with history.
    • Rename & remove unwanted files in your fork.
  2. Clone & Push (More Control):

    • Get original repo's HTTPS clone URL (Code button).
    • Create a new repository on your GitHub account.
    • Clone it locally using git clone <URL>.
    • Navigate to the local directory (cd).
    • Initialize Git (git init if needed).
    • Add all files (git add .).
    • Commit changes (git commit -m "Initial commit").
    • Push to your new repo (git push origin main).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by carreraSilvio
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants