git - How do you make a patch showing the difference between the branch before the first commit and the last committed version in the same branch? -
i have branch called ticket20 , made 10 commits, want make patch shows diff between ticket20 when first created (0 commit) , (10th commit). know can make patch git diff, don't know how target 0th commit , 10th commit.
if branched off master
,
git diff master...ticket20
if branched off remote or otherwise tracked branchpoint git branch -t
or git config branch.autosetupmerge true
,
git diff ticket20@{u}...ticket20
if you've got checked out,
git diff @{u}...
the three-dot syntax specific diff, means "since merge base".
Comments
Post a Comment