<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 9 mar 2020 alle ore 15:24 Christof Thalhofer <<a href="mailto:chrisml@deganius.de">chrisml@deganius.de</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am 09.03.20 um 13:50 schrieb Gianluigi:<br>
<br>
> And after:<br>
> <br>
> $ git pull upstream master<br>...<br>
Ok now you should commit your changes as always and then do a<br>
<br>
$ git push<br>
<br>
Please tell me if that worked.<br></blockquote><div><br></div><div>Just not to be wrong, now my status is this:<br>--------------------------------------------<br>$ LANG=C git status<br>On branch italian-traslations<br>Your branch is ahead of 'origin/italian-traslations' by 3 commits.<br>  (use "git push" to publish your local commits)<br><br>Changes not staged for commit:<br>  (use "git add <file>..." to update what will be committed)<br>  (use "git checkout -- <file>..." to discard changes in working directory)<br><br>       modified:   app/src/gambas3/.lang/it.po<br><br>no changes added to commit (use "git add" and/or "git commit -a")<br>-------------------------------------------------------------------<br>I just have to give git push as suggested by you and git, without repeating add and commit first, right?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

So ... all you needed was "git pull upstream master". But normally<br>
better is a<br>
<br>
$ git rebase upstream master<br>
<br>
if you have commits in your workdir (which are not pushed!).<br>
<br>
If you have a problem, you always can copy the whole workdir (all except<br>
the hidden directory .git) to another place to make a backup. Then reset<br>
the workdir to an older version:<br>
<br>
$ git reset --hard $HashOfOlderVersion<br>
<br>
then<br>
<br>
$ git pull upstream master<br>
<br>
to make it similar to the original Gambas.<br>
<br>
And then copy your changes from the backup over it, then commit, then push.<br></blockquote><div><br></div><div>OK, I'll treasure your advice <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
You should learn mostly everything about these essential Git commands:<br>
fetch, pull, push, merge, stash, branch, rebase and reset.<br>
<br>
If you have done that you will never have any problem any more. Not with<br>
women, not with children, not with age or drugs. And obviously not with<br>
Git repositories.<br></blockquote><div><br></div><div>Yours is definitely good universal advice, too bad it came to me a little late, given my age :-)<br></div><div><br></div><div>Thank you and regads</div><div>Gianluigi<br></div></div></div>