Your first open source contribution starts with a question: do I clone this repo or fork it?
Usually both. They do different jobs, and mixing them up is how people end up with broken remotes and pull requests that go nowhere.
The one-sentence difference.
Clone is a Git command. git clone <url> copies a repository, with its full history, onto your machine.
Fork is not a Git command. It’s a GitHub (or GitLab) feature that copies a repository into your own account on the server.
Why fork at all?
You can’t push to a repo you don’t have write access to. Cloning someone else’s project gets the code onto your laptop, but your push will be rejected. A fork gives you a copy you can push to.…