Fatal not valid: could not determine hash algorithm; is this a git repository?

Hi,

  1. i install gitea Version: 1.16.8 on a sysnology NAS, everything works fine.
  2. from the gitea website i create an org and repo
  3. after that i got these instructions:
touch README.md
git init

git add README.md
git commit -m "first commit"
git remote add origin http://192.168.2.45:8418/myorg/myrepo.git
git push -u origin master
  1. the excution ends with error.
C:\myrepo>git init
Initialized empty Git repository in C:/myrepo/.git/

C:\myrepo>git add README.md

C:\myrepo>git commit -m "first commit"
[master (root-commit) 627a0ce] first commit
 1 file changed, 1 insertion(+)
 create mode 100644 README.md

C:\myrepo>git remote add origin http://192.168.2.45:8418/myorg/myrepo.git

C:\myrepo>git push -u origin master
fatal: http://192.168.2.45:8418/myorg/myrepo.git/info/refs not valid: could not determine hash algorithm; is this a git repository?

whats going wrong?

1 Like