Why does Git say my master branch is “already up to date” even though it is not?

前端 未结 7 1640
甜味超标
甜味超标 2021-01-29 17:17

Basic Problem

I just deleted ALL the code from a file in my project and committed the change to my local git (on purpose). I did

git pull upstream mas         


        
7条回答
  •  我在风中等你
    2021-01-29 18:13

    While none of these answers worked for me, I was able to fix the issue using the following command.

    git fetch origin

    This did a trick for me.

提交回复
热议问题