Skip to content

Git fetch and merge ONE file only #23783

Discussion options

You must be logged in to vote

Ah, I think there might be a misunderstanding about git diff here. A diff does not show you what happens if you would merge, it just shows you the differences between the branches as they currently are.

A merge would try to bring the changes on both branches since the last common ancestor commit together: Both your new local files, and the README change in the GitHub repository. So yes, it sounds like a git merge origin/master would have gotten you what you wanted. :slight_smile:

A problem that can happen when merging is a merge conflict, e.g. if the same section of a file has been changed on both branches, or a file has been changed on one branch and deleted on the other. In that case gi…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants