I needed to push my local repository to a remote server.
mkdir -p /root/projects/myproj
cd /root/projects/myproj
git init .
git config --local receive.denyCurrentBranch updateInstead
git remote add server ssh://user@server:/root/prjects/myproj
git push server