mean.io推动git回购

Ale*_*xey 9 git bitbucket mean-stack

我用平均堆栈(mean.io)创建了一个项目

mean init
Run Code Online (Sandbox Code Playgroud)

这创建了一个git repo,我想在Bitbucket上推入我自己的私人git repo.我做了:

git remote add origin git@bitbucket.org:my_login/reponame.git
git push -u origin --all
Run Code Online (Sandbox Code Playgroud)

我收到以下错误

! [remote rejected] master -> master (shallow update not allowed)
Run Code Online (Sandbox Code Playgroud)

关于如何将我的本地仓库推入Bitbucket的全新远程仓库的任何建议?

Met*_*kao 12

git fetch --unshallow upstream
Run Code Online (Sandbox Code Playgroud)

然后

git push -u origin --all
Run Code Online (Sandbox Code Playgroud)