List for cgit developers and users
 help / color / mirror / Atom feed
From: Brands Pierce <piercebrands@gmail.com>
To: cgit@lists.zx2c4.com
Subject: Problems about git pull & git push
Date: Mon, 28 Mar 2022 21:43:56 +0800	[thread overview]
Message-ID: <CAAJMrsBcNnjbVKkRc8MO8ghj15bCEnRfU33+vcMRUs7OusZLyQ@mail.gmail.com> (raw)

  Recently I set up a private git server locally using cgit.

But encountered some problems:

1. Create an empty public repository on the server, and git pull prompts:

PS C:\Users\piercebrands\projects> git clone
http://git.localhost.obiscr.com/myrepo.git
Cloning into 'myrepo'...
fatal: http://git.localhost.obiscr.com/myrepo.git/info/refs not valid:
is this a git repository?



2. Create a new warehouse locally, push it to origin, and prompt:

PS C:\Users\piercebrands\projects\myrepo> git remote add origin
git@git.localhost.obiscr.com:/repos/myrepo.git
PS C:\Users\piercebrands\projects\myrepo> git push origin master
error: src refspec master does not match any
error: failed to push some refs to '192.168.137.39:/repos/myrepo.git'

When I use the browser to access the git server directly without any
problem, the code highlighting, filters, etc. are all working fine.
Don't know where the problem is.

Thanks!

                 reply	other threads:[~2022-03-28 13:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAJMrsBcNnjbVKkRc8MO8ghj15bCEnRfU33+vcMRUs7OusZLyQ@mail.gmail.com \
    --to=piercebrands@gmail.com \
    --cc=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).