Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3636822
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:04:53+00:00 2026-05-19T01:04:53+00:00

I’ve been using bzr for personal programming projects across my two computers for some

  • 0

I’ve been using bzr for personal programming projects across my two computers for some time now, and syncing the repositories using Dropbox. So far I haven’t had any problems with the following workflow:

  • (Laptop) Create bzr repository
  • (Laptop) Make edits, commit changes
  • (Laptop) ‘bzr push’ to Dropbox
  • (Desktop) Create bzr repository
  • (Desktop) ‘bzr pull’ from Dropbox
  • (Desktop) Make edits, commit changes
  • (Desktop) ‘bzr push’ back to Dropbox

(I know it more resembles a svn workflow, using the Dropbox as the central repository, but setting up svn server on both desktop and laptop to be able to use the synced Dropbox folder as the main repository did not appeal to me at all.)

And so on and so forth.

But now I’m learning Rails, and Rails is all about git. I’ve tried to use a similar workflow, and run into grief.

  • (Laptop) Create git repository
  • (Laptop) Make edits, commit changes
  • (Laptop) ‘git clone’ to Dropbox
  • (Desktop) ‘git clone’ from Dropbox
  • (Desktop) Make edits, commit changes
  • (Desktop) Try to get changes into Dropbox… and here’s where I run into problems.

I’ve done some reading, and it appears clone was not the right command to use in the first place, and I should still be using push? ‘git remote -v’ is telling me:

origin  /home/karpie/Dropbox/Sites/Rails (fetch)
origin  /home/karpie/Dropbox/Sites/Rails (push)

But push still doesn’t work…

Counting objects: 214, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (182/182), done.
Writing objects: 100% (192/192), 725.23 KiB, done.
Total 192 (delta 31), reused 0 (delta 0)
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree inconsistent
remote: error: with what you pushed, and will require 'git reset --hard' to match
remote: error: the work tree to HEAD.
remote: error: 
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
remote: error: 
remote: error: To squelch this message and still keep the default behaviour, set
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To /home/karpie/Dropbox/Sites/Rails
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to '/home/karpie/Dropbox/Sites/Rails'

I… don’t really know what any of that means and it’s quite intimidating.

So…. how can I grasp a proper workflow to use, if my way really isn’t the ‘git way’, and how can I fix my current issue? I don’t really mind nuking the repository that’s currently in my Dropbox and on my laptop, as long as I don’t lose what’s on my desktop.

ps. And while I do have a github account, I’d rather not make my website development code public at this current time, so I’m attempting to use Dropbox instead.

cheers,

Karpie

edit: I’m thinking a GUI like Giggle might help me grasp this concept of ‘branch for everything’, unless anyone has any better ways of coming to grips with it,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T01:04:54+00:00Added an answer on May 19, 2026 at 1:04 am

    Background

    Git has the concept of bare and non-bare repositories. The difference is that non-bare repositories contain a working space, i.e. your checked out files. This is the kind of repository you create and work in on your laptop and desktop machines. A bare repository doesn’t contain any checked out files, and is what normally lives on server as a central repository. What git complains about in the error you get is that it doesn’t like to push to a non-bare repository, since that would change things “under the feet” of whatever user might be using that repository.

    Solution

    1. Create and use a repository on your laptop as you do now.
    2. Create a bare repository in Dropbox: mkdir Repo; cd Repo; git init --bare
    3. Push to the newly created bare repository.
    4. Everything else as usual. 🙂
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm making a simple page using Google Maps API 3. My first. One marker
I have some data like this: 1 2 3 4 5 9 2 6
I'm looking for suggestions for debugging... If you view this site in Firefox or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.