使用Mina进行登台部署时。我在控制台中收到以下错误消息。
fatal: Not a git repository (or any of the parent directories): .git
-----> Fetching new git commits
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
! ERROR: Deploy failed.
-----> Cleaning up build
Unlinking current
OK
! Command failed.
Failed with status 19
我不知道,为什么会出现此错误。请帮助我。
答案 0 :(得分:0)
执行以下操作:
删除远程原点
git remote rm origin
重新添加来源,但使用您的用户名和密码在此pvt存储库上具有写权限
git remote add origin https://USERNAME:PASSWORD@github.com/username/reponame.git