I'm using git for push my task to project, my problem is I have too many commit, so I want to merge two commit in one: example: here my git log:
5928bd5 myname-task7xx
599c7bf myname-task7xx
I want to merge 5928bd5 into 599c7bf . Usually, I use git rebase(pick,squash) to merge them, but my partner said that way too long, and he tell me should try cherry-pick. So I try:
git check out master
git cherry-pick 599c7bf
git merge 5928bd5
and i have this error:
fatal: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists)
So please help me to fix it, or tell me a shorter way to merge them