How to see what will be merged after git fetch
问题 My question is after doing a git fetch how can I see what is what git actually fetched from origin? I have my guesses by using diff but I don't know exactly how I can do it. 回答1: Due to the fact that after a git fetch the fetched references are in origin/master (just an example, if you have more branches then they are updated as well as origin/<name> and you can apply the following commands as well) you have several options here: 1. Display file names only that have been changed git diff -