search

Home  >  Q&A  >  body text

Git log只显示最开始的一次记录

刚开始用Git,安装完尝试了一下,当使用Git log 命令时,明明成功提交了3次,但是只显示了最开始提交的一次记录,我是windows下面的,使用 git log -3 也只显示了最开始的一条记录

大家讲道理大家讲道理2805 days ago725

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-02 09:20:24

    This self-question and answer. I have been accustomed to using svn for centralized management before. The files under svn control can be submitted directly after modification. However, for Git with distributed design, this method is wrong. After modification, it can be submitted. Use the git add command to first put the modified files into the staging area, and the files submitted in git commit will always be in the staging area.

    reply
    0
  • Cancelreply