Created
March 19, 2020 09:42
-
-
Save msadowski/a9f12fb40e89f842f5b23ae6a01623f4 to your computer and use it in GitHub Desktop.
Setting an external machine on lan as a git remote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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