我有一个在Assembla上托管的Git存储库,我正在尝试执行它:
git push -u origin master
Run Code Online (Sandbox Code Playgroud)
我一遍又一遍地得到以下错误:
fatal: https://[url]/[repo-name].git/info/refs not valid: is this a git repository?
Run Code Online (Sandbox Code Playgroud)
我在这里尝试了答案但没有成功:Git .git/info/refs无效:这是一个git存储库吗?
我用的时候:
git status
Run Code Online (Sandbox Code Playgroud)
我明白了:
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
Run Code Online (Sandbox Code Playgroud)
git remote show origin
Run Code Online (Sandbox Code Playgroud)
表明我试图推送的远程存储库不正确.
修好之后:
git remote set-url origin [REPO-URL]
Run Code Online (Sandbox Code Playgroud)
问题解决了.
| 归档时间: |
|
| 查看次数: |
18647 次 |
| 最近记录: |