I moved my laravel project folder and deleted the .git folder inside it to recreate it. I also made two new remotes (origin for bitbucket and production for server) for it but now I can no longer make changes to these remotes.
(i have this repo on bitbucket and server)
git push origin master
Updates were rejected because the remote contains work that you do not have locally.
Anyway, if I delete .git folder by mistake, how do I do this again?
Have you tried to get it off of one of the remotes?
For safety, make a backup of the project directory you currently have locally. A tar, zip, rar, whatever. Move it to a safe place. If you keep all your projects in a specific directory, rename the project's directory to prevent issues. "my-project-backup" or similar. The last thing you want to do is lose the actual files.
*Additionally, you can force the push, but it probably isn't necessary. If one of your remotes has exactly what you want, you should be able to get it from there.