I need to push a project from my local machine to a flash drive then pull this project to server which not connected to network
Asked
Active
Viewed 122 times
1 Answers
2
Yes: initialise a bare repo on your flash drive and then use the local protocol file://
from your normal repo.
cd /path/to/my/repo
git remote add origin file://h/path/to/bare/repo.git
(Here, assuming h is the letter your flash drive is mounted)
Note: another option, if you do this only from time to time, is to use a git bundle
.

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
https://stackoverflow.com/questions/43569757/how-to-use-usb-drive-as-remote – Aly Radwan Jul 14 '18 at 14:26
-
Agreed, this is a similar idea, minus the bundle option. – VonC Jul 14 '18 at 14:28