Accidentally created a git submodule

So I was developing a API Client gem, which was working great, had it's own github repository and my team lead decided that he wanted me to move this client api into the api repository itself. So I copied the files over into it's own directory, removed the .git directory from the client's directory, and merged it into master. Worked great.

However, now when I try to create a branch off of master, the directory shows up a submodule on github, and isn't tracked in my local git. There is no .gitmodules folder, and no mention of submodules whatsoever. I can't create a new branch because it says that there are untracked files that will get overwritten (all the files in my client gem directory) but as far as I can tell there's no way for me to start tracking these files. I can access the directory just fine, but as soon as I modify a file, the change doesn't show up in the api projects git.

What do I do?

Answers


If there is no .git folder or file in that subfolder, all you need to do is git rm --cached [folder] followed by git add [folder]/*


Need Your Help

Should I avoid creating a menu which gets titles and url(href) values from a database?

php mysql html menu

I would like to create a table which has column like title,target and I would list all elements on top of the page as links. Is there a huge drawback of doing this?

Can Someone Point Me To Days Of the Month Source Code?

c ios calendar

I am building and iOS app that requires a minimal calendar. Just days of the month really. Has anyone come across bare bones source code - c-code is fine - that when given a month and year can gene...

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.