Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Dec 2025 16:27:37 +0000
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Moin Rahman <bofh@freebsd.org>
Cc:        freebsd-git <freebsd-git@freebsd.org>,  FreeBSD Mailing List <freebsd-ports@freebsd.org>,  FreeBSD Cluster Administrators <clusteradm@freebsd.org>
Subject:   Re: git doesn't sync: fetch first error (git pull --rebase)
Message-ID:  <CAFDf7U%2BAwRER_ybgT%2BpTAoHnQmbuMBbWCxrkXPu_wdZEAmyK4w@mail.gmail.com>
In-Reply-To: <C1E579FF-D995-4A85-829B-978C6ECE8A4F@freebsd.org>
References:  <CAFDf7ULF_0Jjw4JdcJVJai4irJbCTPQ-wjniraBvoYOkABydaA@mail.gmail.com> <CAFDf7UKRpxX69OtrG_dg_a32ppj_uedhkVE=jX3nGTso8Kpqng@mail.gmail.com> <CAFDf7UKdKrbrAC-40bm_cxiDoP=%2BJprCBVXPD9ojicG-XZ3Waw@mail.gmail.com> <C1E579FF-D995-4A85-829B-978C6ECE8A4F@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hello Moin!

Fixed by using ssh on both fetch/push (until problem is solved):

% git remote -v
freebsd
origin  git@gitrepo.freebsd.org:ports.git (fetch)
origin  git@gitrepo.freebsd.org:ports.git (push)

Cheers,

Moin Rahman <bofh@freebsd.org> escreveu (domingo, 7/12/2025 à(s) 16:07):

>
>
> > On Dec 7, 2025, at 17:04, Nuno Teixeira <eduardo@freebsd.org> wrote:
> >
> > (...)
> >
> > Also did a git clone https://git.FreeBSD.org/ports.git and it is
> stucked in same commit:
> >
> > git log:
> >
> > commit 5a5039a587d6a77b0837dfb3ffa29e635fb0d1a3 (HEAD -> main,
> origin/main, origin/HEAD)
> > Author: Carlo Strub <cs@FreeBSD.org>
> > Date:   Sun Dec 7 11:29:09 2025 +0100
> >
> >     devel/jetbrains-phpstorm: Update to 2025.2.4
> >
> >     PR:             290701
> >     Reported by:    maintainer
> >
> > commit e474eb4802ee6ecc3c530edd1473e78051965f0c
> > Author: Carlo Strub <cs@FreeBSD.org>
> > Date:   Sun Dec 7 11:27:14 2025 +0100
> >
> >     devel/jetbrains-goland: Update to 2025.2.4
> >
> >     PR:             290700
> >     Reported by:    maintainer
> >
> > commit da4c13bc15b39883abc75dd2c0ea16830ce0234c
> >
> > Nuno Teixeira <eduardo@freebsd.org> escreveu (domingo, 7/12/2025 à(s)
> 15:45):
> > (...)
> >
> > % drill -t a git.freebsd.org
> > ;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 48634
> > ;; flags: qr rd ra ; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
> > ;; QUESTION SECTION:
> > ;; git.freebsd.org.     IN      A
> >
> > ;; ANSWER SECTION:
> > git.freebsd.org.        2947    IN      CNAME   gitmir.geo.FreeBSD.org.
> > gitmir.geo.FreeBSD.org. 76      IN      A       85.30.190.139
> >
> > ;; AUTHORITY SECTION:
> >
> > ;; ADDITIONAL SECTION:
> >
> > ;; Query time: 2 msec
> > ;; SERVER: 192.168.1.1
> > ;; WHEN: Sun Dec  7 15:45:23 2025
> > ;; MSG SIZE  rcvd: 85
> >
> > Nuno Teixeira <eduardo@freebsd.org> escreveu (domingo, 7/12/2025 à(s)
> 15:43):
> > Hello all,
> >
> > I'm stucked in a old commit and git pull --rabase don't wanna update to
> latest.
> > Could this be a server problem?
> > I already did some cleanup and stuff:
> >
> > % git gc --prune=now
> >  % git index-pack -v .git/objects/pack/*.pack
> >
> > commit 5a5039a587d6a77b0837dfb3ffa29e635fb0d1a3 (origin/main,
> origin/HEAD, tmp_main)
> > Author: Carlo Strub <cs@FreeBSD.org>
> > Date:   Sun Dec 7 11:29:09 2025 +0100
> >
> > % git pull --rebase
> > Current branch main is up to date.
> >
> > % git push
> > Enter passphrase for key '/home/nunotex/.ssh/id_rsa':
> > To gitrepo.freebsd.org:ports.git
> >  ! [rejected]                  main -> main (fetch first)
> > error: failed to push some refs to 'gitrepo.freebsd.org:ports.git'
> > hint: Updates were rejected because the remote contains work that you do
> not
> > hint: have locally. This is usually caused by another repository pushing
> to
> > hint: the same ref. If you want to integrate the remote changes, use
> > hint: 'git pull' before pushing again.
> > hint: See the 'Note about fast-forwards' in 'git push --help' for
> details.
> >
> > Thanks,
> >
> > --
> > Nuno Teixeira
> > FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org
> >
> >
> > --
> > Nuno Teixeira
> > FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org
> >
> >
> > --
> > Nuno Teixeira
> > FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org
>
> Same here.
>
> ❯ host git.freebsd.org
> git.freebsd.org is an alias for gitmir.geo.freebsd.org.
> gitmir.geo.freebsd.org has address 85.30.190.139
> gitmir.geo.freebsd.org has IPv6 address 2a02:80:0:3ffd::24ca:1
> gitmir.geo.freebsd.org mail is handled by 0 .
>
> Kind regards,
> Moin
>
>

-- 
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org

[-- Attachment #2 --]
<div dir="ltr"><div>Hello Moin!<br><br></div>Fixed by using ssh on both fetch/push (until problem is solved):<br><br>% git remote -v<br>freebsd<br>origin  git@gitrepo.freebsd.org:ports.git (fetch)<br><div>origin  git@gitrepo.freebsd.org:ports.git (push)</div><div><br></div><div>Cheers,</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Moin Rahman &lt;<a href="mailto:bofh@freebsd.org">bofh@freebsd.org</a>&gt; escreveu (domingo, 7/12/2025 à(s) 16:07):<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>
<br>
&gt; On Dec 7, 2025, at 17:04, Nuno Teixeira &lt;<a href="mailto:eduardo@freebsd.org" target="_blank">eduardo@freebsd.org</a>&gt; wrote:<br>
&gt; <br>
&gt; (...)<br>
&gt; <br>
&gt; Also did a git clone <a href="https://git.FreeBSD.org/ports.git" rel="noreferrer" target="_blank">https://git.FreeBSD.org/ports.git</a>; and it is stucked in same commit:<br>
&gt; <br>
&gt; git log:<br>
&gt; <br>
&gt; commit 5a5039a587d6a77b0837dfb3ffa29e635fb0d1a3 (HEAD -&gt; main, origin/main, origin/HEAD)<br>
&gt; Author: Carlo Strub &lt;cs@FreeBSD.org&gt;<br>
&gt; Date:   Sun Dec 7 11:29:09 2025 +0100<br>
&gt; <br>
&gt;     devel/jetbrains-phpstorm: Update to 2025.2.4<br>
&gt; <br>
&gt;     PR:             290701<br>
&gt;     Reported by:    maintainer<br>
&gt; <br>
&gt; commit e474eb4802ee6ecc3c530edd1473e78051965f0c<br>
&gt; Author: Carlo Strub &lt;cs@FreeBSD.org&gt;<br>
&gt; Date:   Sun Dec 7 11:27:14 2025 +0100<br>
&gt; <br>
&gt;     devel/jetbrains-goland: Update to 2025.2.4<br>
&gt; <br>
&gt;     PR:             290700<br>
&gt;     Reported by:    maintainer<br>
&gt; <br>
&gt; commit da4c13bc15b39883abc75dd2c0ea16830ce0234c<br>
&gt; <br>
&gt; Nuno Teixeira &lt;<a href="mailto:eduardo@freebsd.org" target="_blank">eduardo@freebsd.org</a>&gt; escreveu (domingo, 7/12/2025 à(s) 15:45):<br>
&gt; (...)<br>
&gt; <br>
&gt; % drill -t a <a href="http://git.freebsd.org" rel="noreferrer" target="_blank">git.freebsd.org</a><br>
&gt; ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, rcode: NOERROR, id: 48634<br>
&gt; ;; flags: qr rd ra ; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0<br>
&gt; ;; QUESTION SECTION:<br>
&gt; ;; <a href="http://git.freebsd.org" rel="noreferrer" target="_blank">git.freebsd.org</a>.     IN      A<br>
&gt; <br>
&gt; ;; ANSWER SECTION:<br>
&gt; <a href="http://git.freebsd.org" rel="noreferrer" target="_blank">git.freebsd.org</a>.        2947    IN      CNAME   <a href="http://gitmir.geo.FreeBSD.org" rel="noreferrer" target="_blank">gitmir.geo.FreeBSD.org</a>.<br>
&gt; <a href="http://gitmir.geo.FreeBSD.org" rel="noreferrer" target="_blank">gitmir.geo.FreeBSD.org</a>. 76      IN      A       85.30.190.139<br>
&gt; <br>
&gt; ;; AUTHORITY SECTION:<br>
&gt; <br>
&gt; ;; ADDITIONAL SECTION:<br>
&gt; <br>
&gt; ;; Query time: 2 msec<br>
&gt; ;; SERVER: 192.168.1.1<br>
&gt; ;; WHEN: Sun Dec  7 15:45:23 2025<br>
&gt; ;; MSG SIZE  rcvd: 85<br>
&gt; <br>
&gt; Nuno Teixeira &lt;<a href="mailto:eduardo@freebsd.org" target="_blank">eduardo@freebsd.org</a>&gt; escreveu (domingo, 7/12/2025 à(s) 15:43):<br>
&gt; Hello all,<br>
&gt; <br>
&gt; I&#39;m stucked in a old commit and git pull --rabase don&#39;t wanna update to latest.<br>
&gt; Could this be a server problem?<br>
&gt; I already did some cleanup and stuff:<br>
&gt; <br>
&gt; % git gc --prune=now<br>
&gt;  % git index-pack -v .git/objects/pack/*.pack<br>
&gt; <br>
&gt; commit 5a5039a587d6a77b0837dfb3ffa29e635fb0d1a3 (origin/main, origin/HEAD, tmp_main)<br>
&gt; Author: Carlo Strub &lt;cs@FreeBSD.org&gt;<br>
&gt; Date:   Sun Dec 7 11:29:09 2025 +0100<br>
&gt; <br>
&gt; % git pull --rebase<br>
&gt; Current branch main is up to date.<br>
&gt; <br>
&gt; % git push<br>
&gt; Enter passphrase for key &#39;/home/nunotex/.ssh/id_rsa&#39;:<br>
&gt; To gitrepo.freebsd.org:ports.git<br>
&gt;  ! [rejected]                  main -&gt; main (fetch first)<br>
&gt; error: failed to push some refs to &#39;gitrepo.freebsd.org:ports.git&#39;<br>
&gt; hint: Updates were rejected because the remote contains work that you do not<br>
&gt; hint: have locally. This is usually caused by another repository pushing to<br>
&gt; hint: the same ref. If you want to integrate the remote changes, use<br>
&gt; hint: &#39;git pull&#39; before pushing again.<br>
&gt; hint: See the &#39;Note about fast-forwards&#39; in &#39;git push --help&#39; for details.<br>
&gt; <br>
&gt; Thanks,<br>
&gt; <br>
&gt; -- <br>
&gt; Nuno Teixeira<br>
&gt; FreeBSD UNIX:  &lt;eduardo@FreeBSD.org&gt;   Web:  <a href="https://FreeBSD.org" rel="noreferrer" target="_blank">https://FreeBSD.org</a><br>;
&gt; <br>
&gt; <br>
&gt; -- <br>
&gt; Nuno Teixeira<br>
&gt; FreeBSD UNIX:  &lt;eduardo@FreeBSD.org&gt;   Web:  <a href="https://FreeBSD.org" rel="noreferrer" target="_blank">https://FreeBSD.org</a><br>;
&gt; <br>
&gt; <br>
&gt; -- <br>
&gt; Nuno Teixeira<br>
&gt; FreeBSD UNIX:  &lt;eduardo@FreeBSD.org&gt;   Web:  <a href="https://FreeBSD.org" rel="noreferrer" target="_blank">https://FreeBSD.org</a><br>;
<br>
Same here.<br>
<br>
❯ host <a href="http://git.freebsd.org" rel="noreferrer" target="_blank">git.freebsd.org</a><br>
<a href="http://git.freebsd.org" rel="noreferrer" target="_blank">git.freebsd.org</a> is an alias for <a href="http://gitmir.geo.freebsd.org" rel="noreferrer" target="_blank">gitmir.geo.freebsd.org</a>.<br>
<a href="http://gitmir.geo.freebsd.org" rel="noreferrer" target="_blank">gitmir.geo.freebsd.org</a> has address 85.30.190.139<br>
<a href="http://gitmir.geo.freebsd.org" rel="noreferrer" target="_blank">gitmir.geo.freebsd.org</a> has IPv6 address 2a02:80:0:3ffd::24ca:1<br>
<a href="http://gitmir.geo.freebsd.org" rel="noreferrer" target="_blank">gitmir.geo.freebsd.org</a> mail is handled by 0 .<br>
<br>
Kind regards,<br>
Moin<br>
<br>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><font color="#888888">Nuno Teixeira</font></div><div><div><font color="#888888">
FreeBSD UNIX:  &lt;eduardo@FreeBSD.org&gt;   Web:  <a href="https://FreeBSD.org" rel="noreferrer" target="_blank">https://FreeBSD.org</a><br></font></div></div></div></div>;
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7U%2BAwRER_ybgT%2BpTAoHnQmbuMBbWCxrkXPu_wdZEAmyK4w>