git doesn't sync: fetch first error (git pull --rebase)

Nuno Teixeira <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <CAFDf7ULF_0Jjw4JdcJVJai4irJbCTPQ-wjniraBvoYOkABydaA@mail.gmail.com>
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 <[email protected]>
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:  <[email protected]>   Web:  https://FreeBSD.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.