Hi,
Some time ago I decided to "merge" some projects of mine into one single repository. To do so I checked out both repositories locally, removed the .git file in the one repository I was about to move into the other, then moved the files, added them, commited them, pushed them.
I also permanently deleted the old repository (on Bitbucket.org).
Locally, when I run git status, it's says I'm all clean, nothing to show. When I do git push, same message. When I cd into the specific directory that comes from the old repository and I run 'git remote show origin' I see the correct (new) origin (it's the same when I run that command in the folders up higher in the chain). I also checked with 'ls -lta' and there's no .git files left.
But now comes the problem: on the server, I only see the (empty) directory, with a number between brackets added to the name (locally the name is 'git'). No more info, image icon as if it's a directory, it's not 0 bytes either, but it's not clickable to browse deeper into it. When I clone the repository on another computer, the directory is there, but effectively EMPTY. Nothing in it. (luckily I still have it on this laptop!).
What is going wrong? How can I fix this?
Okay, I seem to have fixed it, but I don't completely understand the background of the issue.
I renamed the "git" directory into "git-workshop" (oh the irony). I ran "git status" and got the whole bunch of files under the directory as "New file". I then ran "git add", "git commit -m '...'", "git push" and it's now all present on Bitbucket without weird numbers or icons.
So it seems as if the problem was the directory name "git". But... it has been "git" all along, when it was in the previous repository already, and there it didn't give any issues...
So, the issue itself is solved (yay), but if anyone could explain me the actual core problem, that'd be highly appreciated. I might even add it as a nice-to-know to the workshop ;-)
I still have this problem and I cannot solve it. my folder name however is named "app".
I cannot change the folder name as my server looks for that folder to run.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried moving the folder to a separate (new, temporary) repository? What does that give? (This way you could rule out the name as possible root cause)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.