Skip to content

macos: The newly created empty Git repository cannot be pushed to. #35232

@elkon028

Description

@elkon028

Description

  • First, create an empty Git repository named NNUPropertyAdmin, then follow the guidelines to perform the following operations:
git init
git add .
git commit -m "init"
git remote add origin elkon@localhost:elkon/NNUPropertyAdmin.git
git push -u origin main:main

out:
Repository does not exist or you do not have access
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Gitea Version

1.24.4

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

git version 2.39.5 (Apple Git-154)

Operating System

macOS 15.5 24F74

How are you running Gitea?

Installation from binary:

  1. download: https://github.com/go-gitea/gitea/releases/download/v1.24.4/gitea-1.24.4-darwin-10.12-arm64
  2. shell
export GITEA_WORK_DIR = /opt/gitea

sudo mkdir -p /opt/gitea
sudo mv gitea-1.24.4-darwin-10.12-arm64 /opt/gitea/gitea
sudo chown -R elkon:staff /opt/gitea
cd /opt/gitea
./gitea web
  1. /opt/gitea/custom/conf/app.ini
  • RUN_USER = elkon
  • WORK_PATH = /opt/gitea
  • DOMAIN = localhost
  • HTTP_PORT = 3378
  • DB_TYPE = sqlite3
  • other is default
  1. cat ~/.ssh/id_ed25519.pub
  2. Log in to Gitea (http://localhost:3378/) as the user "elkon".
  3. Create an SSH key (using the content of the id_ed25519.pub file).

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions