gitpractice.dev

home — Ch.1 · Get the project

Exercise 2 of 11

Before you start

Cloning

git clone copies a repository, with its whole history, from a server into a new folder on your computer. The copy remembers where it came from under the name origin.

git clone <address>
copy the repository at that address
git status
show which branch you are on and whether anything has changed

Two kinds of address: SSH and HTTPS

Addresses like git@host:team/repo.git use SSH, which needs a key registered on the server. "Permission denied (publickey)" means the server does not have yours.

Addresses starting with https:// sign in with a password or access token instead.

You can reopen this any time with “Lesson”.

Continue on a desktop

Typing git on a small screen is no fun. Open this page on a laptop or desktop to practise.

Back to the path