Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

git init --bare versus git --bare init

From: Oliver Hoffmann <hidden>
Date: 2016-06-15 22:48:46

Hi Git Folk,

If one accidentally writes "git --bare init <dir>" instead of "git init --bare 
<dir>" an appended directory argument is ignored and $CUR_DIR or the working 
directory will be used:
pwd
/tmp/foo
git --bare init /tmp/bar
Initialized empty Git repository in /tmp/foo/
git init --bare /tmp/bar
Initialized empty Git repository in /tmp/bar/

... but both should probably be initialized in /tmp/bar/

Greetings,
Oliver Hoffmann
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help