<div dir="ltr"><pre><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">st 22. 5. 2019 v 21:44 odesílatel Even Rouault<br><<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev">even.rouault at spatialys.com</a>> napsal:<br>><i> git fetch origin  (assuming 'origin' point to OSGeo/grass)
</i>><i> git rebase origin/master
</i>
or possibly
git pull --rebase</blockquote><br></pre><pre><font face="arial, sans-serif">git pull --rebase can be indeed used to the same effect. You can even add </font></pre><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><pre>[pull]</pre><pre>    rebase = true</pre></blockquote><span style="white-space:pre"><font face="arial, sans-serif">to your .gitconfig. </font></span><div><br></div><div>Nevertheless, IMHV it is still a better idea to use a personal fork + Pull Requests instead of the main repo. With this workflow, even if you do something messy you can always sort it out without adding noise to history</div><div><span style="white-space:pre"><font face="arial, sans-serif"></font></span></div><div><span style="white-space:pre"><font face="arial, sans-serif"><br></font></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have updated the section<br>Keep your local source code up to date<br><a href="https://trac.osgeo.org/grass/wiki/HowToGit#Keepyourlocalsourcecodeuptodate">https://trac.osgeo.org/grass/wiki/HowToGit#Keepyourlocalsourcecodeuptodate</a></blockquote><div><br></div><div>The stash step was wrong. I fixed it. In order to reapply the stash you need:</div><div><br></div><div>    git stash apply && git stash pop </div><div><br></div><div>This way the stash is being popped if and only if it has been applied cleanly. If there are conflicts you can reset the repo without losing your stash (which you might want to apply to a different branch etc).<br></div><div><br></div><div>P.</div><div><br></div></div>