| modified | Friday 3 October 2025 |
|---|
I needed to push my local repository to a remote server.
mkdir -p /root/projects/myprojcd /root/projects/myprojgit init .git config --local receive.denyCurrentBranch updateInsteadgit remote add server ssh://user@server:/root/prjects/myprojgit push server