<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno sab 7 mar 2020 alle ore 23:41 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 07.03.20 um 14:21 schrieb Gianluigi:<br>
<br>
> Il giorno sab 7 mar 2020 alle ore 01:03 Gianluigi <<a href="mailto:bagonergi@gmail.com" target="_blank">bagonergi@gmail.com</a><br>
> <mailto:<a href="mailto:bagonergi@gmail.com" target="_blank">bagonergi@gmail.com</a>>> ha scritto:<br>
> <br>
>     ...<br>
> <br>
>  <br>
> After solving various conflicts and pulling "italian-translations" this<br>
> is my situation on my remote:<br>
> ---------------------------------------------<br>
> gian@gian:~/gambas$ LANG=C git status<br>
> On branch italian-translations<br>
> Your branch is ahead of 'origin/italian-translations' by 497 commits.<br>
<br>
Hmm, this looks a bit weird.<br>
<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>
> <br>
> See also here gitk image <a href="https://paste.c-net.org/WalkmanLeveled" rel="noreferrer" target="_blank">https://paste.c-net.org/WalkmanLeveled</a><br>
> <br>
> Any suggestions on how to proceed?<br>
<br>
In situations I do not understand any more I do this:<br>
(be careful, not tested!)<br>
<br>
I copy the whole workdir to another place to backup my work.<br>
<br>
$ cp -r ./gambas /var/tmp<br>
(be careful, not tested!!!!)<br>
<br>
Then I do<br>
<br>
$ cd ./gambas<br>
$ git stash<br>
to put my changes out of the way<br>
<br>
Then I checkout an older version, for instance<br>
$ git checkout bfc455070e9b94dd7<br>
<br>
Then pull<br>
<br>
$ git pull<br>
$ git checkout master<br>
<br>
-------------------------<br>
<br>
Now there is the current version on the computer.<br>
<br>
-------------------------<br>
<br>
After that you can copy the backup over this version, then commit and<br>
push your changes as usual.<br>
<br>
<br>
Alles Gute<br>
<br>
Christof Thalhofer<br>
<br>
-- <br>
Dies ist keine Signatur<br>
<br>
<br>
----[ <a href="http://gambaswiki.org/wiki/doc/netiquette" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/doc/netiquette</a> ]----<br></blockquote><div><br></div><div>Hi Christof,<br>sorry I'm late, but I did a thousand tests based on your suggestions<br>These are the last commands given:<br><br>$ cd ./gambas<br>$ git clone git@gitlab.com:GianluigiOr/gambas.git<br>$ cd ./gambas<br>$ git stash<br>$ git checkout 0a63c136765a50bb92c9c37972f05a638dfed753<br>$ git pull (ERROR)<br>You are not currently on a branch.<br>Please specify which branch you want to merge with.<br>See git-pull(1) for details.<br><br>$ git checkout -b italian-traslations<br>$ git pull --rebase origin/master (ERROR)<br>$ git remote add upstream <a href="https://gitlab.com/gambas/gambas.git">https://gitlab.com/gambas/gambas.git</a><br>$ git pull --rebase upstream master<br>$ git status<br>$ git checkout -- app/src/gambas3/.lang/it.po<br>$ exit<br>MAKED TRANSLATIONS<br>$ cd ./gambas<br>$ git status<br>$ git add app/src/gambas3/.lang/it.po<br>$ git commit<br>$ git push (ERROR)<br>$ git push --set-upstream origin italian-traslations<br><br>This is the current situation on my remote:<br><a href="https://gitlab.com/GianluigiOr/gambas/-/commits/65dd322acf1f6e66c4b4db6ebf7fda488a29c092">https://gitlab.com/GianluigiOr/gambas/-/commits/65dd322acf1f6e66c4b4db6ebf7fda488a29c092</a><br><br>I noticed that the italian-translations branch is no longer on origin<br><br>This is the last gitk:<br><a href="https://paste.c-net.org/StubbornPhoebe">https://paste.c-net.org/StubbornPhoebe</a><br><br>Regards & Goodnight<br>Gianluigi <br></div></div></div>