Merging Pulled Changes
Goals
- Learn to get the pulled changes into the current branch and working directory.
Merge the fetched changes into local master
Execute:
git merge origin/master
Output:
$ git merge origin/master
Updating e0cc19e..b39ac69
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.
当前内容版权归 gitimmersion 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 gitimmersion .