search

Home  >  Q&A  >  body text

Can Git get the list of submitted files?

After this git commit -m submission, can I use any command to get which files (file paths) were submitted?

Can I then read this change list from what file?

巴扎黑巴扎黑2772 days ago769

reply all(6)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-02 09:42:00

    # --name-only 只显示文件名 
    git log --name-only -1
    # --pretty=format:"" 格式化commit message 这里什么都不显示
    git log --pretty=format:"" -1
    # 最终
    git log --pretty=format:"" --name-only  -1

    reply
    0
  • 为情所困

    为情所困2017-05-02 09:42:00

    try this command

    git log --oneline --name-only -1

    reply
    0
  • 某草草

    某草草2017-05-02 09:42:00

    It is recommended to use tig

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:42:00

    git show commitid, you can view the details of the submission, including file name, file modification content, etc.

    reply
    0
  • 为情所困

    为情所困2017-05-02 09:42:00

    Or you can use git-diff:

    git diff --name-only HEAD~1 HEAD

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-02 09:42:00

    git log --stat

    reply
    0
  • Cancelreply