How do I clone a foreign repo to work on in github directly?

satya - 6/15/2025, 11:52:28 AM

The 4 options

  1. Fork + Branch + Pull Request: Fork the original repo, create a branch, and make changes with the intention of submitting a pull request back to the original repository.
  2. Fork + Branch (No Pull Request): Fork the repo and make changes in a branch, but keep the work for personal or internal use without contributing back.
  3. Fork + Push to New Repo: Start by forking, then push the fork?s content (with or without history) to a completely separate GitHub repo under your account to make it independent.
  4. Clone + New Repo: Clone the original repo directly (no fork), optionally remove its Git history, and push it to a brand-new GitHub repo for a clean, standalone project.

satya - 6/15/2025, 12:27:08 PM

For now i choose the clone + new repo

  1. clone from remote
  2. remove .git
  3. init and push to a new repo