Skip to content

Instantly share code, notes, and snippets.

@kylelambert101
Last active November 19, 2020 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylelambert101/d70e1089772715178f40090fd1201271 to your computer and use it in GitHub Desktop.
Save kylelambert101/d70e1089772715178f40090fd1201271 to your computer and use it in GitHub Desktop.
Git -> Set dropbox as a remote repo
# From https://medium.com/@optalgo/use-dropbox-as-a-git-repo-96c0e6412549
#Create and setup the Dropbox base repo
mkdir -p ~/Dropbox/Git
cd ~/Dropbox/Git
# Do the following for every project you want to add
git init --bare myProject.git
# Add Dropbox as a remote branch named "origin"
cd ~/myProject
git remote add origin ~/Dropbox/Git/myProject.git
# Push the local repo, setting dropbox's master as the upstream branch.
git push --set-upstream origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment