I recently bought a Raspberry Pi. I finished installing and setting up SSH and Git on the Raspberry Pi. I am able to make connections and to transfer files using ssh
and scp
respectively.
I am using a 16 GB USB drive to store data which is mounted on /media/data
.
I have several repositories on GitHub. I want to migrate those repositories to my Raspberry Pi such that each time I use git push
, all commits are pushed to my Raspberry Pi.
For example, I own this repository on GitHub:
https://github.com/cfbaptista/PolyMath.jl
I push to this repository from my laptop by running:
$ cd /home/carlos/Workspace/PolyMath.jl/
$ git push
However, instead of pushing to GitHub I want to push to:
raspberrypi:/media/data/repos/git/PolyMath.jl
How do I perform the necessary changes?
P.S.: Momentarily, my Raspberry Pi is accessible only on my own local network. External access has not been set up yet.