git - Difference between single commit on branch and trunk -


i have seen questions diffing files none matches usecase.

the situation:

a - b - c - d (master)  \ e (tag) - f - g - h (my_branch) 

now see diff if had cherry-picked h onto d.

this happens when working on stable version of software , need send patch against trunk.

anyone know how can produce such diff?

to see difference between 2 commits, git diff h d.

editing in response comments

the fewest steps can think of is:

git checkout master git cherry-pick h --no-commit git diff --staged git reset --hard 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -