Git fork/clone

Hello class,

I was searching the internet in the difference between clone and fork in git because people seem to use the two terms interchangeably. Is this true? Is there a difference or do they mean the same thing?


idk it seems like a github thing. Git just lets you branch and merge and github I guess adds a ‘fork’ type of branching on top of that with some extra zazz of some kind.

[matt@laptop ~]$ git fork
git: ‘fork’ is not a git command. See ‘git --help’.
Did you mean this?

I wouldn’t worry about it for the purposes of this class. Worry about how to revert a commit once you’ve committed like 6 other commits on top of it :slight_smile:

For the purposes of this class, you wouldn’t fork the os161 repo to do your assignments, because you can’t fork a public repo and make it private. You could, however, clone the repo and push it to a new [private] repository, and that would preserve all the pre-existing commits and allow you to make your own.

AFAIK fork is a GitHub thing, not part of git itself. Read this: