search

Home  >  Q&A  >  body text

github - Please tell me how to solve the problem when git add fails and an error message appears.

Git add fails and there is no way to submit the file to the warehouse. Here is what I do. I copy an HTML file to the warehouse and then git add it in Git Bash. Is this wrong?
I have Googled various methods and used almost all the methods I found, but there is still no way to solve this problem. Please give me some guidance!

漂亮男人漂亮男人2835 days ago743

reply all(4)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-02 09:48:27

    I don’t quite understand your problem. Isn’t the error message obvious? You need to add a test2 file or folder to the submission cache, but there is currently no such file or folder.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:48:27

    Since it is an html file, why don’t you add a suffix to the file? The file name includes the suffix!

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-02 09:48:27

    git init? Is it connected to the database?

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-02 09:48:27


    Everyone, I accidentally tried this method and finally git add was successful

    reply
    0
  • Cancelreply