Last active
August 29, 2015 13:57
-
-
Save myfavouritekk/9361908 to your computer and use it in GitHub Desktop.
Shell: Using Dropbox folder as git remote repository.
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
# Initalize git repository | |
git init | |
git add . | |
git commit -m "first commit" | |
# Initialize git repository on Dropbox folder as remote branch | |
cd ~/Dropbox/git | |
git init --bare project.git | |
# Add remote to local git repository | |
cd ~/project | |
git remote add origin ~/Dropbox/git/project.git | |
# set upstream and push | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment