Is there a way to fetch differences from a different branch or commit without introducing them to your local history? Just fetching all the changes as unstaged code?
For example
Branch1:
(HEAD) abc1 : added file A.txt
Branch2:
(HEAD) abc2 : added file B.txt
|
abc1 : added file A.txt
so at Branch1
i want to fetch all the differences from Branch2
without adding them to Branch1
history. As a result I expect to have A.txt
from commit abc1
and an unstaged file B.txt