Why can't I push to this bare repository?

后端 未结 6 1946
生来不讨喜
生来不讨喜 2020-12-07 07:10

Can you explain what is wrong with this workflow?

$ git init --bare bare
Initialized empty Git repository in /work/fun/git_experiments/bare/
$ git clone bare         


        
6条回答
  •  温柔的废话
    2020-12-07 07:44

    I use SourceTree git client, and I see that their initial commit/push command is:

    git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
    

提交回复
热议问题