You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Previous episode Git merge conflicts: why Git stops and asks you

How Git keeps every version of your project without filling your disk

git clone: what you really get when you copy a Git project

One git clone, and a Git project lands on a new laptop. Is that only today's files, or much more? What a clone really holds, and why it can open old versions with no internet.

  1. 1 First you put a copy of your repository on a server, a computer on the internet that stays on. Git calls a shared copy like this a remote, and yours is named origin.your laptopa serverorigin

    First you put a copy of your repository on a server, a computer on the internet that stays on. Git calls a shared copy like this a remote, and yours is named origin.

  2. 2 At home, Rono runs git clone with the address of origin, and his laptop gets far more than the game as it is today.Rono?git clone

    At home, Rono runs git clone with the address of origin, and his laptop gets far more than the game as it is today.

The rest of this episode is for subscribers

Subscribe to read every premium episode. You can cancel when you want.

Paid yearly: $99 instead of $119.88

Next episode git push and git pull: why Git can refuse your push

Share this comic

More comics