Skip to content

Instantly share code, notes, and snippets.

@msadowski
Created March 19, 2020 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msadowski/a9f12fb40e89f842f5b23ae6a01623f4 to your computer and use it in GitHub Desktop.
Save msadowski/a9f12fb40e89f842f5b23ae6a01623f4 to your computer and use it in GitHub Desktop.
Setting an external machine on lan as a git remote
git remote add mat git://192.168.1.34/home/mat/catkin_ws/src # 192.168.1.34 is the IP of my laptop
git fetch mat # Make sure you can talk to the remote
ssh-keygen -t rsa # Generate an SSH key pair, use default settings
ssh-copy-id -i id_rsa.pub mat@192.168.1.34 # copy the public key to my laptop
# Now you can use the repo as you normally would, making sure you specify the origin as "mat" when pushing/pulling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment