Last active
November 19, 2020 20:28
-
-
Save kylelambert101/d70e1089772715178f40090fd1201271 to your computer and use it in GitHub Desktop.
Git -> Set dropbox as a remote repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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