In my local git repository branch, it is 9 commits behind. Could you tell me how I can advance it by 1 commit?
# Your branch is behind 'my-git/remote' by 9 commits, and can be fast-forwarded.
I read How to speed up scrolling of one git commit programmatically? I do not understand the answer.
I do not need to do this programmatically. Is there a command line method that I can use?
In this particular case, you could do
git merge my-git/remote~8 --ff-only
: , , "my- git/remote" , 8 . "~ 8". "-ff-only" , .
( ) , , . , , .
git merge my-git/remote~8
You can also do the following:
git merge 12345678 --ff-only
where 12345678 denotes the commit identifier of a particular commit to which you want to join (if you do not want to count how many commits you have to skip).