I’m a git newbie, and this is what I currently have:
master: A -- B -- C
\
\
branch: X -- Y
-
How do I Update commit Y with
changes from B and C?Is this simply:
git fetch machine?
master; git merge machine/master -
Push changes of certain files from Y to C?
For 1:
This will result in
For 2 (while
masteris checked out):This will apply changes from Y to your working tree and you may amend C with the changes you want.
See git-rebase(1) and git-cherry-pick(1).