Since the remote master branch is up-to-date, try and reset your local branch to it:
git fetch
git switch -C master origin/master
Or, if you are already locally on master
:
git reset --hard origin/master
Check then if the git status
still report a non-empty index.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…