git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git gui does not open bare repositories

From
Frans Klaver <fransklaver@gmail.com>
Date
Sep 28, 2012, 08:08 UTC
Message-ID
<CAH6sp9N1cFH7orPNmfbhgHq6oUNtQNe=-5f5jkYNXzr+6Xp_pQ@mail.gmail.com>
In-Reply-To
<CAB9Jk9CA+e8xR9sz7cW+5+990FmTeYN3pjxs4ZKFpkzb6OL35Q@mail.gmail.com>

On Fri, Sep 28, 2012 at 9:50 AM, Angelo Borsotti <angelo.borsotti@gmail.com> wrote:

Show 7 quoted lines
> I have created a bare repository:
>
> $ mkdir remote.git
>
> angelo@ANGELO-PC /d/gtest (master)
> $ git init --bare
> Initialized empty Git repository in d:/gtest/

This creates a bare repository in d:/gtest, not in d:/gtest/remote.git. You'll need to cd into remote.git to create a bare repo.

> and then tried to open it with the git gui, but have got the message:
> "remote.git is not a git repository".
So this message is correct.

Be as it may, as soon as you've initialized the repo as required, git gui will (probably) tell you:

"Cannot use bare repository:
d:/gtest/remote.git"

So nothing gained there. So I'm wondering what you expect git gui to give you in a bare repo? It seems to me that this tool is specifically aimed at non-bare repos, allowing for creating commits, merges and whatnot; all things you cannot typically do in a bare repo.

Frans
Previous: Angelo BorsottiNext: Frans Klaver
Message 2 of 11 in “git gui does not open bare repositories”
  1. Angelo BorsottiSep 28, 2012
  2. Frans KlaverSep 28, 2012
  3. Frans KlaverSep 28, 2012
  4. Stefan NäweSep 28, 2012
  5. Angelo BorsottiSep 28, 2012
  6. Angelo BorsottiSep 28, 2012
  7. Ben Smith-MannschottSep 28, 2012
  8. Angelo BorsottiSep 28, 2012
  9. Ben Smith-MannschottSep 28, 2012
  10. Angelo BorsottiSep 28, 2012
  11. Stefan NäweOct 1, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.