If you want to get rid of the annoying back and forth copying after each change in your source code you can simply mount the directory used by the brick using SSHFS.
|- .git/ [lokal]
|- src/ [-> EV3]
To start, the first step would be to install
sshfs on your local machine.
# Please see the specific command for your system if not Debian-based.
$ sudo apt-get install sshfs
Git does not work by default across file system boundaries.
In order to get it work, a global variable must be set on your computer.
Add this to your .bashrc (e.g.) file:
$ export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
To mount or unmount the remote directory use these commands:
$ sshfs robot@<Brick IP>:/home/robot/src src
$ fusermount -u src