Is it possible to pull specific files or changes from another users working directory using thier Local IP address?
e.g.
git pull http://192.168.1.101/sandbox/somefile.php
It should be noted that both users are using Windows XP.
Thanks,
P.
Thanks to the response of both Rup's answer and eckes's answer, I've come up with the following so far:
You'll need to know the IP address of the users PC 192.168.x.x
(this will be the in the example below) and then you'll need to share the folder in Windows XP.
On your PC you need to have an initialised and empty git repository for you to add the new remote before you pull.
Example:
git init
git remote add <alias> //<ip_address>/<shared_folder_name>
git pull <alias> <branch>
The problem with the above is that it will copy the entire contents of the shared folder. I am still looking for a way to pull an individial file from another users working directory.
Yes, although it'll depend on what file sharing mechanisms you have. Your other user almost certainly won't be hosting their repository over HTTP by default, although you could have them set this up if you want. What you probably want to do is use XP's file sharing which you can do via IP, i.e.
git pull \\192.168.1.101\shared_directory\sandbox
if there's shared directory set up or
git pull \\192.168.1.101\c$\full_path_on_c_drive\sandbox
if there's no shared directory but you have sufficient access rights to their machine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With