Re: git usage question: error: failed to push some refs...
Markus Neteler <[email protected]>
| Newsgroups | gmane.comp.gis.grass.devel |
|---|---|
| Message-ID | <CALFmHhtrjOQbJ9YtqmmL3vqRaJ2bdf-3Bv4YFG+-EV-8v5nOOw@mail.gmail.com> |
Hi, On Sat, Aug 22, 2020 at 11:58 AM Markus Neteler <[email protected]> wrote: > > 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. Cool, Vero told me the trick (thanks!): git pull origin memory_grassrc_settings (here I got an expected conflict which I fixed and committed) then: git push origin memory_grassrc_setting and all successfully updated in PR922. Markus _______________________________________________ grass-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-dev