开发者

GIT - Force Override of remote repository

开发者 https://www.devze.com 2023-03-20 13:58 出处:网络
My server provider somehow deleted the remote repository and so i need to override it with my local copy.

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 r开发者_StackOverflow中文版emote state?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号