git usage question: error: failed to push some refs...

Markus Neteler <[email protected]>
Newsgroups gmane.comp.gis.grass.devel
Message-ID <CALFmHhuP=yBy7CO4QRZRyO4TYy-4vkwY1aEYo3d63UA3oYYQtA@mail.gmail.com>
Hi devs,

I am struggling to push my code simplification (thanks for the tip,
Vaclav) to https://github.com/OSGeo/grass/pull/922

Now I get:

git push origin memory_grassrc_setting
To github.com:neteler/grass.git
 ! [rejected]            memory_grassrc_setting ->
memory_grassrc_setting (non-fast-forward)
error: failed to push some refs to '[email protected]:neteler/grass.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

What happened, if I recall correctly, is that I edited one thing via
GitHub web interface.
This will be missing from my local repo and hence the push command
throws an error.

What's the trick to sync it? (I RTFM'ed for a while but...)

My remotes are this:

git remote -v
origin    [email protected]:neteler/grass.git (fetch)
origin    [email protected]:neteler/grass.git (push)
upstream    [email protected]:OSGeo/grass.git (fetch)
upstream    [email protected]:OSGeo/grass.git (push)

thanks for a pointer,
Markus
_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.