Skip to content

Instantly share code, notes, and snippets.

@witoff
Last active August 29, 2015 14:05
Show Gist options
  • Save witoff/4cbfaab9dcf2d41d81a5 to your computer and use it in GitHub Desktop.
Save witoff/4cbfaab9dcf2d41d81a5 to your computer and use it in GitHub Desktop.
Store Old Repos Locally

First, initialize a source repo

cd ~/Google\ Drive/git
git init --bare project.git

Next, set as a remote and push

cd project/
git remote add gdrive ~/Google\ Drive/git/project.git
git push -u gdrive master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment