Is it possible to 'git pull' only the next commit?

I understand 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.

  • Vagrant w/ windows as host, files don´t run on vm due to crlf
  • Revert to local commit?
  • How to deploy .gitignored compiled files in Heroku?
  • Deploy a project using Git push
  • Git - Bitbucket repo hasnt stored the files in a sub-folder
  • add history to git repository or merge git repositories
  • The tip of my tree is completely unaltered and will not have any merge conflicts and such.

  • git rebase --onto results on single commit
  • How to keep different content of one file in my local and github repository?
  • How can I combine two commits into one commit?
  • What is the advantage of git lfs?
  • File Permission issues with sharing a GIT Remote Repository
  • How to replace a commit with another one in Git rebase?
  • 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.

    Git Baby is a git and github fan, let's start git clone.