git: diff between file in local repo and origin

后端 未结 7 2121
我在风中等你
我在风中等你 2020-12-04 04:42

I want to find the differences between a file I have in my local repo vs what is in the origin master.

I know that there is git diff, howev

7条回答
  •  既然无缘
    2020-12-04 05:05

    To compare local repository with remote one, simply use the below syntax:

    git diff @{upstream}
    

提交回复
热议问题