没有共同的参考,也没有指定参考;什么也不做 [英] No refs in common and none specified; doing nothing

查看:81
本文介绍了没有共同的参考,也没有指定参考;什么也不做的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个本地git项目,我想添加到gitolite中.显然这很难,所以我放弃了这个主意.我通过将其添加到gitolite-admin/conf/gitolite.conf中并提交并推送更改来创建了一个新的gitolite回购.然后,我成功地用git clone git-noah:project-name克隆了新的仓库.然后,我将.git以外的所有文件和文件夹复制到项目名称文件夹.我做到了,

I had a local git project that I wanted to add to gitolite. Apparently this is hard so I abandoned the idea. I created a new gitolite repo by adding it to gitolite-admin/conf/gitolite.conf and committing and pushing the changes. Then I cloned the new repo with git clone git-noah:project-name successfully. I then copied all files and folders except .git to the project-name folder. I did,

git add -A
git commit -a -m "Moved to new repo."
git push

我收到此错误:

warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'git-noah:project-name'

推荐答案

远程(来源)存储库上尚不存在任何主服务器.

No master exists yet on the remote (origin) repository.

git push origin master

第一次按下后,您可以使用更简单的

After this first push you can use the simpler

git push

这篇关于没有共同的参考,也没有指定参考;什么也不做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆