我创建了一个github令牌,以便使用travis ci自动部署。
我正在本地环境中使用这个令牌来测试它。我就是这么做的:
mkdir out && cd out
git init
git remote add origin https://$USERNAME:$GITHUB_TOKEN@github.com/$USERNAME/$PROJECT
git pull --all
这在我自己的计算机中就像一个魔咒,但在travis中执行时,我得到的唯一输出是:
Initialized empty Git repository in /home/travis/build/$USERNAME/$PROJECT/out/.git/
Fetching origin
remote: Not found
fatal: repository 'https://[secure]@github.com/$USERNAME/$PROJECT/' not found
error: Could not fetch origin
我错过了什么?