What is the difference between git clone and fork?
| Clone | Fork |
|---|---|
A Git command (git clone) | A feature of GitHub or GitLab (button) |
| Copies a repository to your computer | Copies a repository to your account on the server |
| You must have read access | Works on any public repository |
| Used to work locally | Used to suggest changes to a project you do not own |
A normal open source flow is: fork the project, clone your fork, push your changes to it, and open a pull request. See Git and GitHub.
Learn more about the similar topics:
| Tutorials |
|---|
| Git Clone |
| Git Remote |
| Git Push |
| Git Fetch and Pull |
| Exercises & Assignments |
|---|
| Clone a repository, make a change and push it |
| Get new changes from the remote with fetch and pull |