How to Ignore new commits for git submodule
2017-08-25 10:41
453 查看
the git occured serveral new commits like:
and I don’t know how it comes and the git clean -xdf,git checkout .,git checkout – are all don’t work.
So how to fix it?
Just run:
This will revert the submodule the to old commit (specified in parent-repo), without updating the parent-repo with the latest version of the submodule.
Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: bbi (new commits) modified: bbif (new commits) modified: c2c (new commits) modified: e6 (new commits) modified: nodetestif (new commits)
and I don’t know how it comes and the git clean -xdf,git checkout .,git checkout – are all don’t work.
So how to fix it?
Just run:
$ git submodule update
This will revert the submodule the to old commit (specified in parent-repo), without updating the parent-repo with the latest version of the submodule.
相关文章推荐
- how to remove submodule in git
- How to start a new process for Android?
- How to tune a new closeloop vcm, for instance, LC898214?
- How to Write a Git Commit Message
- How to use the tools provided to train Tesseract for a new language.
- How To Add QML Module with Plugins for Qt Creator
- Career Change: Tips on How to Look for a New Job
- How to Start a New Cocos2d-x Game for version 3.0
- How to setup a new Organization and Set of Books for a Payables Responsibility
- tensorflow学习笔记十7:tensorflow官方文档学习 How to Retrain Inception's Final Layer for New Categories
- How to create new module in npm
- Github for Windows:Commit failed: Failed to create a new commit
- How-to-design-and-deploy-a-new-master-page-for-sharepoint-2010
- [译]How to Write a Git Commit Message
- How to git clone linux kernel for developer(THE URL)
- How to set value for webpart’s properties when I create a new sharepoint template
- How to create .gitignore file in Windows Explorer
- [GOOD Article] How to disable web.config Inheritance for Child Applications in Subfolders in ASP.NET?
- How to start a new process for Android?
- How to replace a character for a newline in Vim?