how to find all changes since last push?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

how to find all changes since last push?

From: layer <hidden>
Date: 2016-06-15 22:46:06

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

Re: how to find all changes since last push?

From: Brandon Casey <hidden>
Date: 2016-06-15 22:46:06

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help