github changes not staged for commit

后端 未结 13 692
[愿得一人]
[愿得一人] 2020-12-23 13:31

I have a very basic github setup with a readme, a directory, and another directory inside it with an html file. On github I can only view the readme and the first folder but

13条回答
  •  执笔经年
    2020-12-23 14:06

    WARNING! THIS WILL DELETE THE ENTIRE GIT HISTORY FOR YOUR SUBMODULE. ONLY DO THIS IF YOU CREATED THE SUBMODULE BY ACCIDENT. CERTAINLY NOT WHAT YOU WANT TO DO IN MOST CASES.

    I think you have to go inside week1 folder and delete the .git folder:

    sudo rm -Rf .git
    

    then go back to top level folder and do:

    git add .
    

    then do a commit and push the code.

提交回复
热议问题