I've been playing with git diff a little bit and I can't seem to find a way to compare two branches for new/modified/deleted files coming only from my branch.
Let's says we got master and dev, which is the branch I'm working on. I would like to git diff them but only get what I modified in dev compared to master.
Perhaps this is what you're looking for:
See
git help difffor a full explanation of all the possible flags at the beginning of each line, but the most frequent would be (A)dded, (D)eleted and (M)odified...Edit: Actually, if you want to get only the changes made on
dev, then the above command will work, but you don't want to comparedevto the current head ofmaster, but to the place wheredevdiverged frommaster, which is generally the same asgit merge-base master dev. So the above command would be changed to: