2

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

Aly Radwan
  • 199
  • 3
  • 6

1 Answers1

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