shx
shx

Reputation: 1138

Code synchronization combining usb flash drive and Bitbucket repository

I'm new to git version-control system so I need help or advice from experts. I would like to backup and sync my 2 PCs over Bitbucket repository. One of 2 computers is without network connection. So, I have the problem.

This is equipment I plan to use for problem solving:

I came up with idea of git repository on USB flash drive for commiting code from A computer and later on sync those commits with B computer or with Bitbucket repository.

Is this possible? Does someone has similar setup? How to configure this?

Thanks everybody.

Upvotes: 2

Views: 218

Answers (1)

rlegendi
rlegendi

Reputation: 10606

You can set up Git hooks, so when you push to a remote for example you can also copy/archive/push to an alternative repository on your USB drive. Then you have to manually update your repo on PC A.

Upvotes: 1

Related Questions