This assumes you can already ssh USER@HOST
with appropriate public key auth.
- Download and compile git source
curl -O https://www.kernel.org/pub/software/scm/git/git-2.9.4.tar.gz tar -gzvf git-2.9.4.tar.gz cd git-2.9.4 make configure ./configure --prefix=/home/jmakeig/bin # Install it in my home directory make all doc info make install
- Make sure
git
is in your pathecho 'export PATH="$PATH":/home/jmakeig/bin/bin' >> ~/.bashrc
- Create and initialize the repo
mkdir -p ~/git/myrepo.git cd ~/git/myrepo.git git init --bare
- Add the remote
git remote add marklogic USER@HOST:/home/jmakeig/git/myrepo.git
- Push away
cd ~/myrepo git push marklogic master