Is it possible to 'git pull' only the next commit?
git pull will update the working branch to the tip of a remote branch that it tracks. So let’s say if I do
git pull, it will pull in all the latest changes. In my case, it will pull in 5 changes on top of my tree.
Is there a way to
git pull only the next change? i.e., if
git pull would put change 03, 04, 05, 06 and 07 on top of my tree, how do I pull only change 03? At the time of this command I do not know the commit ID of the next change it would pull in.
The tip of my tree is completely unaltered and will not have any merge conflicts and such.
One Solution collect form web for “Is it possible to 'git pull' only the next commit?”
Perhaps something like this?
git fetch git merge <commit to merge>
To find the ID of the commit you want to merge, look it up in gitk after running the fetch.