Git : can't publish branch

I have a Git repository linked to my Repl.
When there was a Git 1 and Git 2 I was only using the old one and it worked great.
Now it seems I cannot use the old version of Git. So I have tried the new version. On some repls it works but on others, when I want to publish and click on Publish Branch as Origin/main, it doesn’t change anything and it doesn’t publish anything.
What can I do ? I have tried reconnecting to Github but it doesn’t change.
Is there a way to do it with Shell ?


If you want to force it to push in Shell, you can do:

git push -u origin main

Replacing origin with a repository name, and main with a branch name if necessary.

ok thanks i’m going to try that