<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 18 May 2019, 19:11 Markus Neteler, <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
For fetching the updates, is this enough:<br>
<br>
git pull --all<br>
?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Μmm... sometimes yes, but I wouldn't suggest it. </div><div dir="auto"><br></div><div dir="auto">Git pull is essentially 2 operations in one. It is a git fetch, followed by a git merge.</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">The potential problem is with the merge step. </span><br></div><div dir="auto"><br></div><div dir="auto">When you have no local changes, git pull works just fine. When you have local changes though, there might be a conflict with the remote ones. And if there is a conflict, you need to resolve it.</div><div dir="auto"><br></div><div dir="auto">Resolving the conflicts is not something you can avoid; you will eventually have to do it, but you should probably not try to do it before you have reviewed the (remote) changes you just fetched.</div><div dir="auto"><br></div><div dir="auto">This is why I almost always do this in 3 steps:</div><div dir="auto"><br></div><div dir="auto">1. git fetch --all</div><div dir="auto">2. Review the fetched changes. It's often convenient to use a git client here. gitg, qgit and tig are easy to use and lightweight options.</div><div dir="auto">3. git merge</div><div dir="auto"><br></div><div dir="auto">By injecting step 2 you can both check if there are any conflicts and think what's the best way to resolve them. Moreover, if there are conflicts, you can choose to postpone resolving them (resolving conflicts takes time). If you do git pull you will have to resolve them straight away.</div><div dir="auto"><br></div><div dir="auto">P.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>