After I have pulled from origin master branch(git pull origin master), how can I check the code difference between the version before pulled and the current version(after pulled)?
After I have pulled from origin master branch( git pull origin master ), how
Share
The easiest way is to run
instead of
pull. Then you’ll have yourmasterandorigin/masterboth available locally, and you can just diff the two before pulling.Otherwise, if you’ve already run
pull, useto find the previous HEAD commit on your local
master, and compare that to the current HEAD.