我正在尝试将一个存储库推送到不幸的是从我的文本编辑器中的客户端断开的存储库。
出现的错误是:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/jboyle1/milestoneproject-004.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
所以我尝试:
git pull repo_name
但是它说:
remote: Repository not found.
它可能是一个简单的修复程序,但我正在努力。
答案 0 :(得分:0)
应该简单地是git pull
(或git pull origin master
)
检查git remote -v
的输出,并查看“ origin
”是否确实引用了远程存储库URL。