Enter your server's repo directory rm -r * git reset --hard Then you can push as usual on the local machine/dev