Answer the question
In order to leave comments, you need to log in
How to git push to a folder via SSH?
There is a local repository, there is access to the server via ssh, but there is no way to install git on the server. As far as I understand, to add git add remote to your local repository, you need to do git init on the server, but do not install git on it.
How to push to such a folder?
Answer the question
In order to leave comments, you need to log in
You can try to mount the remote server as a folder, I used SSHFS, and then work with this folder as a local one. Naturally, the number of operations will go off scale, but I can’t tell how much
It says the following:git init --help
DESCRIPTION
This command creates an empty Git repository - basically a .git directory with
subdirectories for objects, refs/heads, refs/tags, and template files. An initial HEAD
file that references the HEAD of the master branch is also created.
mkdir .git
echo "ref: refs/heads/master" > .git/HEAD
mkdir .git/objects
mkdir .git/refs
mkdir .git/refs/heads
mkdir .git/refs/tags
git init repo
scp -r repo [email protected]:/path/to/repo
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question