gitpractice.dev

brewly — Ch.3 · Fetch and merge in one step

Exercise 5 of 9

Before you start

git pull

git pull is a fetch followed by a merge into your current branch.

Uncommitted changes can stay, as long as the incoming commits do not touch the same files.

git pull
update your branch from the server
git log --oneline
check what arrived
git status
your uncommitted change should still be there
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