m@LAPTOP-2MJNMG75 MINGW64 ~/Desktop/task (master)
$ git pull origin master
From github.com:mhy-web/github-task
* branch master -> FETCH_HEAD
Already up-to-date.
m@LAPTOP-2MJNMG75 MINGW64 ~/Desktop/task (master)
$ git add .
m@LAPTOP-2MJNMG75 MINGW64 ~/Desktop/task (master)
$ git commit -m 'task'
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
m@LAPTOP-2MJNMG75 MINGW64 ~/Desktop/task (master)
$ git push origin master
Everything up-to-date
m@LAPTOP-2MJNMG75 MINGW64 ~/Desktop/task (master)
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
无法push到远程仓库,后来git init了,找了各种办法还是解决不了
删除本地分支,重新拉取试试