1

Git push existing repo to a new and different remote repo server?

So I followed the instruction of the answer in this question, but I'm encountering some problems.

When I push to the completely fresh one it gets stuck for a couple of seconds at: Writing objects: ~60%:

Screenshot

In addition to that it also seems like I lose my internet for the couple of seconds. I don't have any issues if the files are not linked to any repos.

I appreciate any help I can get.

Community
  • 1
  • 1
user3685954
  • 35
  • 1
  • 7
  • 1
    Copy and paste your error message into this question please. Did you try searching for the error message on Google or Stack Overflow? It sounds like it might just be a temporary network issue. Also, how big is your `.git` folder? –  Jun 30 '14 at 00:35
  • Well the thing is, it works if the files are not linked to any repo, but if they are, it bugs out like that. The folder is about 300mb. – user3685954 Jun 30 '14 at 10:08

1 Answers1

1

Okay so I found a solution that at least work for what I initial wanted. All I did was deleting the hidden .git folder (was around 250mb). I then proceeded to do a git init and then push the files to the desired repository. I found other people suggestion to switch to ssh, so that might be an option for another person getting the same error, it wasn't an option for me however.

user3685954
  • 35
  • 1
  • 7
  • This makes very little sense. Deleting `.git` and then doing `git init` basically throws away all of your previous history...is that something that you really wanted to do? –  Jul 01 '14 at 00:04
  • Not really, but there doesn't seem to be anything else I can do to fix the issue, except for switching to ssh. – user3685954 Jul 01 '14 at 01:46