Home  >  Q&A  >  body text

github - git的删除操作

怎么把这绿色的-139去掉啊 之前我是手动删除全部后 复制了新的东西进去,然后我git add -A,之后红色的变成绿色的部分了。怎么把绿色的-139去掉。

PHP中文网PHP中文网2727 days ago536

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:50:01

    Just submit it
    git commit -m "prompt message"
    git push

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-02 09:50:01

    +0 means 0 lines added, ~0 means 0 lines changed, -139 means 139 lines reduced

    This should be what is displayed on your command line, not what git actively displays to you. But you can git diff --stat to see the line number change information

    Red indicates local changes, green indicates that it has been placed in the Staging area (buffer). This information will be gone after you submit it

    reply
    0
  • Cancelreply