I have a remote repo to which I want to push from my local machine via ssh. But because of the error mentioned here I can't do it without problems, because Iam getting remote errors when the server git suspects that I might damage files there.
'[remote rejected] master -> master (branch is currently checked out)'
The solution mentioned in the other question is to checkout to another branch on the server, that works but is quite annoying. Because I want to have running the master branch there and I don't like to have always switch to another branch on the server before pushing data from my local repo.
How can I solve that?