code_junkie

How to update a git repo containing a submodule?

Nov 12th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. mblsha@siruba:~/src/psi/ $ git status
  2. iris: needs merge
  3. # On branch master
  4. # Changes to be committed:
  5. # (use "git reset HEAD <file>..." to unstage)
  6. #
  7. # modified: src/common.cpp
  8. #
  9. # Changed but not updated:
  10. # (use "git add <file>..." to update what will be committed)
  11. #
  12. # unmerged: iris
  13. #
  14. # Untracked files:
  15. # (use "git add <file>..." to include in what will be committed)
  16. #
  17. # gupdate.sh
  18. mblsha@siruba:~/src/psi/ $ git submodule status
  19. +cf237ef8f3d9dc058dbde47e6973e6388608ce60 iris (heads/master)
  20. +cf237ef8f3d9dc058dbde47e6973e6388608ce60 iris (heads/master)
  21. +cf237ef8f3d9dc058dbde47e6973e6388608ce60 iris (heads/master)
  22. mblsha@siruba:~/src/psi/ $ cd iris
  23. mblsha@siruba:~/src/psi/iris/ $ cat .git/HEAD
  24. cf237ef8f3d9dc058dbde47e6973e6388608ce60
  25.  
  26. 1. deleting the submodule (rm -r iris)
  27. 2. recreating it again (git submodule update)
Add Comment
Please, Sign In to add comment