Skip to content

Use git fetch to pull changes into local repo without merging #105

@umermansoor

Description

@umermansoor

git fetch only downloads latest changes into the local repository and does not merge into the current branch. It downloads latest changes that other developers have pushed to the remote repo since the last fetch and allows you to review and merge manually at a later time using git merge.

$ git checkout develop
$ git fetch

This is in contrast with git pull that downloads and then merges changes into the current branch. Source

Metadata

Metadata

Labels

coolhackThis trick is cooldailyhackThis issue belongs to dailyhack.xyzgit

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions