Skip to content

Instantly share code, notes, and snippets.

@dcardosods
Created September 26, 2012 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 dcardosods/3790399 to your computer and use it in GitHub Desktop.
Save dcardosods/3790399 to your computer and use it in GitHub Desktop.
Git Workflow: Github fork > bare repo on Dropbox > local

Dropbox folder

git clone --bare .git


## Local folder
>```bash
git clone <DROPBOX BARE REPO> <DROPBOX BARE REPO NAME without .git sufix>

Push to dropbox bare repo

git push

Dropbox folder

Push to github repo

git push

Add remote upstream repo

git remote add upstream <GITHUB ORIGINAL REPO>

Fetch upstream commits

git fetch upstream +master:upstream

Local folder

Pull from dropbox

git pull

Merge upstream

git merge origin/upstream

Push to dropbox bare repo

git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment