I'm trying to do an access from a remote machine to a server machine which currently does not contain any git installation. The question is: Does the server machine need a git installation in any kind (i assume it needs) to work from the client only via ssh with git?
Without git on the server, you can't push/pull to the remote. The protocol you use to act remotely on your git repo, doesn't change this.
You can if you really need/want to just rsync your .git directory to a remote server. Because all files in the .git/objects directory are based on a hash, you won't get any collisions.
That would mean in principle:
# git push
rsync -rv .git server:repo.git
# git pull
rsync -rv server:repo.git .git
git reset HEAD --hard # Here lies the problem with this technique.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With