On Wed, Jun 17, 2009 at 1:03 PM, Mark Volkmann<r.mark.volkm...@gmail.com> wrote:
> On Tue, Jun 16, 2009 at 8:17 PM, Antony Blakey <antony.bla...@gmail.com>
> wrote:
>>
>> On 17/06/2009, at 10:37 AM, Mark Volkmann wrote:
>>
>> > I think you've got that backwards. A "git push" is how I would ask
>> > the remote repo to accept my changes. A "git pull" says I want to
>> > update my local repo with changes someone made in the remote repo.
>>
>> No, you can send a *request* to Rich, via GitHub, to pull from your
>> repository. That's what a git pull *request* is - it's a request for
>> someone else to git pull. A 'git pull' is, as you say, the command to
>> pull commits into your repository and apply them, but that's not what
>> Rich is talking about here.
>>
>> A common GitHub workflow is to fork someone's repository, clone your
>> fork, push your changes to your GitHub fork, and then send a pull
>> request to the owner of the 'canonical' repository that you forked
>> from, asking them to pull certain commits from your fork.
>
> We must be talking about a different way of using git. In my case I created
> a local repo from the remote github repo using the following command:
>
> git clone git://github.com/richhickey/clojure.git
>
> After doing this, I still contend that the correct way to update my local
> repo is to cd to the directory of my local repo and run "git pull". Do you
> think that's wrong? It seems to me in this scenario the command we shouldn't
> use it "git push" because that would attempt push my changes back to the
> github repo.

You cannot `git push` to Rich's github repository unless he has added
you as a contributor. However, you can fork his repository on github,
clone it, and `git push` to that.

Indeed, when Rich has made changes to his repository and you want
those changes in your local repository, you do a `git pull`.

A "pull request" is a github workflow term for when you have a fork
(created with the "fork" button on github) with your own changes, and
you want Rich to pull in those changes. To do that, you press the
"pull request" button and Rich will get a private message, and
possibly also an email, with your request.

>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>
> >
>



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to