search

Home  >  Q&A  >  body text

git push 提示 Everything up-to-date

我在github上已经建立一个仓库master(之前的git config --global 之类都已经做好了) 然后clone下到本地,进行操作在更改文件后 进行提交 提示Everything up-to-date
搜索一下说是 提交到了本地的仓库没有提交到线上。

git add . git commit 都执行过的

$ git push origin master
Everything up-to-date

$ git remote -v
origin  git@github.com:gitgitcode/test.git (fetch)
origin  git@github.com:gitgitcode/test.git (push)
$ git branch
* master


这个问题,有的时候有没有让人头痛。 还是对文档不熟悉啊……

怪我咯怪我咯2807 days ago887

reply all(4)I'll reply

  • 黄舟

    黄舟2017-04-24 09:12:29

    git status Let’s see what’s going on first.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-24 09:12:29

    You don’t have git add yet. git commit

    reply
    0
  • ringa_lee

    ringa_lee2017-04-24 09:12:29

    I encountered this once, because I created a local branch, and just merged after entering the master.

    reply
    0
  • 黄舟

    黄舟2017-04-24 09:12:29

    Are you sure you committed? Take a look at the git log

    reply
    0
  • Cancelreply