git gui does not open bare repositories

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

git gui does not open bare repositories

From: Angelo Borsotti <hidden>
Date: 2016-06-15 22:54:53

Hello,

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/

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

The git gui is the one that I have downloaded from the git web site for windows:

gt-gui version 0.16.GITGUI
git version 1.7.11.msysgit.1

Thank you
-Angelo Borsotti

Re: git gui does not open bare repositories

From: Frans Klaver <hidden>
Date: 2016-06-15 22:54:53

On Fri, Sep 28, 2012 at 9:50 AM, Angelo Borsotti
[off-list ref] wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help