1

I have a code base hosted on GitHub and need to check out this code base to Raspberry Pi with minimal external interaction so that once the checkout is initiated and internet connection fails in between, system should be able to continue checkout once internet is available, without any manual interactions. Please suggest.

Zoe
  • 27,060
  • 21
  • 118
  • 148
Abhilash
  • 339
  • 2
  • 7
  • If the code is hosted on Github, then it's probably a git repo and you need to use "git clone" to bring a copy down locally, not the svn command? – tgharold May 07 '16 at 01:44
  • Basically, I am looking for a solution for to complete synchronisation on an unstable internet connection without much interaction. My understanding is that whatever command is used, while the command is running and internet fails in between, I have to re-run the commands. I am looking for a set up in which some cron jobs will run periodically in my Raspberry Pi and if my Pi is connected to internet during specific time period, my local repository will get updated and any internet connection issues should be taken care by svn commands or in some other ways. – Abhilash May 10 '16 at 06:39

1 Answers1

-1

These posts might help with doing a 'git clone' on an unstable connection. Once you have the clone operation done, fetching updates will hopefully be less traffic.

Some of the suggestions boil down to:

  • Do a git clone on a machine with a stable connection
  • rsync or transfer it to the Raspberry Pi using a resumable transfer method
  • hope that future fetch/pull get through

However, there's still no way to resume a pull/clone if it fails mid-stream with git. As long as your internet connection is stable long enough for the 'git fetch' to run to completion, you would be okay.

Community
  • 1
  • 1
tgharold
  • 721
  • 6
  • 15