Moving submodules with Git


This question already has an answer here:


It's similar to how you removing a submodule (see How do I remove a Git submodule?):

  • Edit .gitmodules and change the path of the submodule appropriately, and put it in the index with git add .gitmodules
  • If needed, create the parent directory of the new location of the submodule: mkdir -p new/parent
  • Move all content from the old to the new directory: mv -vi old/parent/submodule new/parent/submodule
  • Remove the old directory with git rm --cached old/parent/submodule

Looks like this for me afterwards:

# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#       modified:   .gitmodules
#       renamed:    old/parent/submodule -> new/parent/submodule
  • Finally commit the changes.

Need Your Help

Is it possible to create a new row of tabs in xcode?

ios xcode4

I'd like a new row of tabs just below the existing row. Is this possible in xcode?

Angular $watch is not working for arrays and data collections

arrays angularjs onchange angularjs-watch

I need to watch for changes in the list of objects, and perform some action on change, however, Angular $watch is triggered only once, when list was first created and initial object was pushed into...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.