0

My server provider somehow deleted the remote repository and so i need to override it with my local copy. However when i do git push origin master it says everything is up to date - but it's definitely not.

How can i force GIT to push all files regardless of the remote state?

n00b
  • 14,958
  • 19
  • 52
  • 71
  • 1
    When you say 'deleted the remote repository' what exactly do you mean? – Abizern Jul 16 '11 at 09:33
  • what exactly is deleted for you? removed history? physically removed the directory from the server? `everything up-to-date` usually hints at a complete history on the server – knittl Jul 16 '11 at 12:22

1 Answers1

0

Do like this When creating a git repository that will be on the server, can I convert it to a bare repository?

Then copy the bare version to the server.

Community
  • 1
  • 1
Flavius
  • 12,501
  • 13
  • 76
  • 118
  • Then clone that empty repo, copy over all of the files, commit and push this *initial commit*. You'll lose all the history, but you'll look smart, like doing it all in one piece :D – Flavius Jul 16 '11 at 09:41