! [remote rejected] master -> master (Working directory has unstaged changes) code example
Example: ! [remote rejected] master -> master (Working directory has unstaged changes)
Enter your server's repo directory
rm -r *
git reset --hard
Then you can push as usual on the local machine/dev