相关疑难解决方法(0)

为什么我不能推到这个裸存储库?

你能解释一下这个工作流程有什么问题吗?

$ git init --bare bare
Initialized empty Git repository in /work/fun/git_experiments/bare/
$ git clone bare alice
Cloning into alice...
done.
warning: You appear to have cloned an empty repository.
$ cd alice/
$ touch a
$ git add a
$ git commit -m "Added a"
[master (root-commit) 70d52d4] Added a
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 a
$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch …
Run Code Online (Sandbox Code Playgroud)

git

281
推荐指数
5
解决办法
18万
查看次数

标签 统计

git ×1