How two laptops can git push/pull to each other with no internet

后端 未结 5 1746
情话喂你
情话喂你 2020-12-24 03:05

Say my co-hacker and I find ourselves on a desert island. Normally we push and pull to github to sync with each other. How would you recommend we do so when we have no conne

5条回答
  •  难免孤独
    2020-12-24 03:36

    One solution compatible with your scenario would be to share through an USB stick one file through git bundle

    That allows you to:

    • consider that one file (the 'bundle') as an upstream repo to which each user can update said bundle, and from which they can fetch new commits.
    • avoid trying to synchronize a large collection of files/meta data within a bare repo structure.
    • don't rely on any network/server process whatsoever.

提交回复
热议问题