Skip to content

Instantly share code, notes, and snippets.

@praveen-symphony
Forked from subelsky/move_github_repos.sh
Created October 27, 2016 02:01
Show Gist options
  • Save praveen-symphony/0bde981d2a75c396452ef1cb0eabfeac to your computer and use it in GitHub Desktop.
Save praveen-symphony/0bde981d2a75c396452ef1cb0eabfeac to your computer and use it in GitHub Desktop.
How to archive old github private projects on Dropbox
# http://stackoverflow.com/questions/1960799/using-gitdropbox-together-effectively/1961515#1961515
export REPONAME=????
take ~/Dropbox/git/$REPONAME.git
git init --bare
cd ~/code/$REPONAME
git remote rm origin
git remote add origin ~/Dropbox/git/$REPONAME.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment