Add your local machine's public key in ~/.ssh/id_rsa.pub
to Raspberry Pi file ~/.ssh/authorized_keys
#/bin/bash
ip=$(hostname -I)
for i in {1..3};
do
echo "I P address is $ip" | festival --tts
# sleep 0.5
done
mkdir test.git
cd test.git
git init --bare
git clone ssh://git@rpi.local:17438/home/git/test.git
git remote add pi ssh://git@rpi.local:17438/home/git/test.git
After editing your repo, push it to Raspberry Pi
git add --all
git commit -m "read me"
git push pi master
vcgencmd measure_temp
Add two line in ~/.ssh/config
file:
Host rpi.local
Port 61734
Then, run the following command:
rsync -r git@rpi.local:/home/git/ ./