Mezgani blog

April 29, 2010

Merge the remote changes before pushing again. “not a fast forward”

Filed under: informational, linux, system, tools — Tags: — Ali MEZGANI @ 3:26 am

When you try to push and you get this message that’s mean that someone else has changed after your last fetch.
Well in this case you have to incorporate their changes before you can add yours typically, you’ll want to rebase rather than merge and you’ll also want to test the joined version.

$ git fetch
$ git diff master…origin/master

that’ll show changes of upstream
$ git fetch origin
$ git rebase origin/master
$ git push prigin master

About these ads

2 Comments »

  1. [...] changes of upstream $ git fetch origin $ git rebase origin/master $ git push prigin master Aller à la source [...]

    Pingback by Merge the remote changes before pushing again. “not a fast forward” | GNU Linux Maroc جنو لينوكس المغرب — April 29, 2010 @ 7:51 pm

  2. Thanks, that has been really helpful. I look it up every time I forget..:)

    Comment by gnyrfta — November 30, 2012 @ 11:19 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: