Saying " just don't push to a dirty index" is disappointing because it kinda goes completely against the whole point of having a - distributed- RCS. I should be able to have only -exactly- as many repositories as I need. For example, if I want to transfer changes in files between machine A and machine B, both necessarily need to have a working copy. That means that I definately need 2 locations with git initialized already repo A and repo B. Saying that I should then create a repo C, and push and pull all changes to repo C is like saying: Create a centralized repository. Which part of the point of being a distributed RCS is you shouldn't need to rely on a centralized repository.
I love git, but some things are so counter-intuitive about it it's annoying. On Aug 22, 2:46 pm, Tekkub <[EMAIL PROTECTED]> wrote: > Generally speaking, you shouldn't push into another repo that has a working > copy. You should push to a bare repo (like maybe one hosted on github?) and > then pull from that repo into your other repo. If you don't want that > "middleman" repo, then you should pull from one repo to the other, instead > of pushing. > > --tek > > On Fri, Aug 22, 2008 at 5:34 AM, Markus Prinz <[EMAIL PROTECTED] > > > wrote: > > > On 22.08.2008, at 13:17, James wrote: > > > 4) Now when I push this updated working folder onto the origin, the > > > new file is not added! > > >> git push > > > > When I switch to origin and run git-status, I see my new file with a > > > 'deleted' status. Please anyone can tell me what's happening? > > > When you push to another repository, git will *never* update the > > working copy of that repository. To update the working copy, simply > > run "git checkout". > > > regards, Markus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GitHub" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/github?hl=en -~----------~----~----~----~------~----~------~--~---
