Most project hosters like CodePlex, GitHub, etc. let you create a fork on their servers to share changes between computers. The code I was working on, however, weren't being hosted.
To the cloud!
The SkyDrive apps for Windows and Mac create a special directory on your computer that automatically gets synced to SkyDrive and your other computers. I decided to create my fork there. Here is an example of forking my Places project to SkyDrive.# Create a SkyDrive fork cd %USERPROFILE%\SkyDrive git clone --bare https://git01.codeplex.com/placesNote that this is a bare repository -- don't edit these files directly.
After creating the fork, add it as a remote to your existing clone. Here is an example of creating another clone of the Places repository and adding the skydrive remote. Do this outside the SkyDrive directory.
# Add SkyDrive fork as a remote to a new clone git clone https://git01.codeplex.com/places cd places git remote add skydrive %USERPROFILE%\SkyDrive\places.gitTo share work between computers, push your changes to the fork.
# Push to SkyDrive fork git push skydrive workTo get those changes on another computer, wait for SkyDrive to finish syncing and pull them.
# Pull from SkyDrive fork git pull skydrive workThere you have it, your very own SkyDrive fork! Now, what else can we do to eliminate that USB flash drive from our lives for good?
3 comments :
1. Clone remote to directory one
2. Then use Eclipse and clone Repository from local file system
Do you get good speeds when you sync to skydrive? I 've tried this many times but the speed of the uploads is so slow.
@Anonymous No, I've noticed it's pretty slow to sync too.
Post a Comment