Git error: Changes not staged for commit

前端 未结 1 783
后悔当初
后悔当初 2020-12-18 20:50

I have my project + RestKit submodule. Error appeared when I changed RestKit settings. I added support armv6 and armv7 architecture.

git add .
git add -u 
g         


        
相关标签:
1条回答
  • 2020-12-18 21:10

    You are apparently dealing with a submodule, so you should use the submodule workflow :

    # Modification on RestKit, for instance :
    cd RestKit
    git add .
    git commit -m "Support for armv6 & armv7"
    cd ..
    # RestKit submodule up-to-date, now update your project
    git add RestKit
    git commit -m "RestKit submodule updated"
    

    You can find more information here.

    Also : Git Book on Submodules

    0 讨论(0)
提交回复
热议问题