相关疑难解决方法(0)

如何撤消"git push --mirror"?

在git/github项目中,我正在分支机构工作.推动后,它说:

git push
To git@github.com:...
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:...'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again.  See the 'Note about
fast-forwards' section of 'git push --help' for details.
Run Code Online (Sandbox Code Playgroud)

我试图解决这个问题,在Googleing上我提出了这个问题:

git push --mirror
Run Code Online (Sandbox Code Playgroud)

我发出了以下命令,现在看来我已从服务器中删除了很多分支.

Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:...
 - [deleted]         develop
 + 797beee...bafbc50 master -> master (forced update)
 - [deleted]         milestone
 - [deleted]         robot
 - …
Run Code Online (Sandbox Code Playgroud)

git github

17
推荐指数
1
解决办法
6372
查看次数

标签 统计

git ×1

github ×1