How to cherry pick from 1 branch to another

I have 2 branches, master and dev. I am on dev branch and I want to cherry-pick 1 commit from master to dev. So I did $ git cherry-pick be530cec7748e037c665bd5a585e6d9ce11bc8ad Finished one cherry-pick. But when I do git status and gitx, I don’t see my commit be530cec7748e037c665bd5a585e6d9ce11bc8ad in git history. How can I see my … Read more

How does git merge after cherry-pick work?

Let’s imagine that we have a master branch. Then we create a newbranch git checkout -b newbranch and make two new commits to newbranch: commit1 and commit2 Then we switch to master and make cherry-pick git checkout master git cherry-pick hash_of_commit1 Looking into gitk we see that commit1 and its cherry-picked version have different hashes, … Read more

What Git branching models work for you?

Our company is currently using a simple trunk/release/hotfixes branching model and would like advice on what branching models work best for your company or development process. Workflows / branching models Below are the three main descriptions of this I have seen, but they are partially contradicting each other or don’t go far enough to sort … Read more

git cherry-pick says “…38c74d is a merge but no -m option was given”

I made some changes in my master branch and want to bring those upstream. When I cherry-pick the following commits. However, I get stuck on fd9f578 where git says: $ git cherry-pick fd9f578 fatal: Commit fd9f57850f6b94b7906e5bbe51a0d75bf638c74d is a merge but no -m option was given. What is git trying to tell me and is cherry-pick … Read more

Is it possible to cherry-pick a commit from another git repository?

I’m working with a git repository that needs a commit from another git repository that knows nothing of the first. Typically I would cherry-pick using the HEAD@{x} in the reflog, but because this .git knows nothing of this reflog entry (different physical directory), how can I cherry-pick this, or can I? I’m using git-svn. My … Read more