* how to find all changes since last push?
@ 2009-02-05 17:29 layer
2009-02-05 18:09 ` Brandon Casey
0 siblings, 1 reply; 2+ messages in thread
From: layer @ 2009-02-05 17:29 UTC (permalink / raw)
To: git
I'm a git noob, and I'm trying to move my organization to it from CVS
(which we've used since 1991). Currently stuck on this:
I think a natural style of development using git would be to do a
series of commits to my local repo and when things are stable, do a
push somewhere or collect all the changes into a patch.
I have googled and looked at documentation, but I cannot figure out
how to find all changes since my last push. To make this more
complex, I'd like intervening pull's not to interfere with my ability
to find all changes since the last push.
Thanks.
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to find all changes since last push?
2009-02-05 17:29 how to find all changes since last push? layer
@ 2009-02-05 18:09 ` Brandon Casey
0 siblings, 0 replies; 2+ messages in thread
From: Brandon Casey @ 2009-02-05 18:09 UTC (permalink / raw)
To: layer; +Cc: git
layer wrote:
> I'm a git noob, and I'm trying to move my organization to it from CVS
> (which we've used since 1991). Currently stuck on this:
>
> I think a natural style of development using git would be to do a
> series of commits to my local repo and when things are stable, do a
> push somewhere or collect all the changes into a patch.
>
> I have googled and looked at documentation, but I cannot figure out
> how to find all changes since my last push.
Let's assume that the defaults are used. Your branch is named master,
your remote is named origin, and the remote branch is named master also.
$ git push # changes pushed upstream
# edit, test, commit ... # make new commits
$ git log origin/master.. # show new commits since last push
> To make this more
> complex, I'd like intervening pull's not to interfere with my ability
> to find all changes since the last push.
$ git fetch # fetch the changes others have committed
$ git log origin/master.. # still shows new commits on your master since
# last push
'git log origin/master..' is really short for 'git log origin/master..HEAD',
or for this example, in place of 'git log origin/master..master'. It is
showing the commits that exist on master that do not exist in origin/master.
To see what new things have been applied to origin/master that you do not
have in master (i.e. after the 'git fetch'), switch it around:
$ git log master..origin/master
-brandon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-05 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 17:29 how to find all changes since last push? layer
2009-02-05 18:09 ` Brandon Casey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox