gitpractice.dev

coffee-notes — Ch.3 · Put your own project online

Exercise 3 of 9

Before you start

Remotes

A remote is another copy of the repository, usually on a server, saved under a short name. By convention the main one is called origin.

A repository you started with git init has none until you add it.

git remote add <name> <address>
save a server address under a name
git remote -v
show the remotes and their addresses
git push -u origin <branch>
first push of a branch
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