git: Show difference between local and remote branches
Sometimes we need to know which files will be pulled to our working tree from the remote repository. To do that just run:
git fetch origin ; git diff --name-only master origin/master
The git fetch command will fetch all changes that happened in the origin. And the git diff will show us the differents files between our working tree and the remote.
Related protips:
Written by Ítalo Lelis de Vietro
Related protips
1 Response
Really? so easy! It's good that I saw it because I still didn't know ...
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Diff
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#