search

Home  >  Q&A  >  body text

github - git deletion operation

How to remove this green -139? Before, I deleted everything manually and copied the new things into it. Then I git add -A, and then the red part turned into green part. How to remove the green -139.

PHP中文网PHP中文网2770 days ago575

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