我有一个托管在Assembla的Git代码库,现在需要执行以下操作:
git push -u origin master
我一遍又一遍地遇到了以下错误:
fatal: https://[url]/[repo-name].git/info/refs not valid: is this a git repository?
我曾尝试过这个答案,但并没有成功:Git .git/info/refs not valid: is this a git repository?
当我使用以下命令时:
git status
我理解为:
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
git remote show origin
,在"Fetch"和"Push" URL下面,您是否看到了您期望的URL? 应该是类似于 git@git.assembla.com:[REPO-NAME].git 的格式。 - Shastings