Skip to content

Instantly share code, notes, and snippets.

@myfavouritekk
Last active August 29, 2015 13:57
Show Gist options
  • Save myfavouritekk/9361908 to your computer and use it in GitHub Desktop.
Save myfavouritekk/9361908 to your computer and use it in GitHub Desktop.
Shell: Using Dropbox folder as git remote repository.
# 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