我有一个本地git项目,想要添加到gitolite中。显然这很难,所以我放弃了这个主意。我通过将其添加到gitolite-admin / conf / gitolite.conf中并提交并推送更改来创建一个新的gitolite回购。然后,我git clone git-noah:project-name
成功克隆了新的仓库。然后,我将.git以外的所有文件和文件夹复制到项目名称文件夹。我做到了
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'
git config
消息中的任何一条语句。git help config
将为您解释它们之间的差异。您可以阅读此问题以获取更多信息。