Skip to content

lab 41 Merging Pulled Changes

Goals

Merge the fetched changes into local main

Execute:

git merge origin/main

Output:

$ git merge origin/main
Updating c6d9ed3..21df587
Fast-forward
 README | 1 +
 1 file changed, 1 insertion(+)

Check the README again

We should see the changes now.

Execute:

cat README

Output:

$ cat README
This is the Hello World example from the git tutorial.
(changed in original)

There are the changes. Even though “git fetch” does not merge the changes, we can still manually merge the changes from the remote repository.

Up Next

Next let’s take a look at combining the fetch & merge process into a single command.