0
我弄乱了我的远程存储库,我可以恢复它吗?我搞砸了一个远程存储库,我可以从本地还原吗?
现状:
- 笔记本电脑(拉形式储存库, 我从另一台笔记本电脑推与 错误的数据)
- 桌面(其中有一个良好的 本地仓库 - 昨天)
台式机
[email protected]:/var/www/html/t1.org$ git remote show origin
Enter passphrase for key '/home/gd/.ssh/id_rsa':
* remote origin
Fetch URL: [email protected]:t1_org.git
Push URL: [email protected]:t1_org.git
HEAD branch: master
Remote branches:
develop tracked
master tracked
Local branches configured for 'git pull':
develop merges with remote develop
master merges with remote master
Local refs configured for 'git push':
develop pushes to develop (local out of date)
master pushes to master (up to date)
在桌面上,开发已过时,远程设备上的应有信息是不同的,但是不对。
我可以将本地存储库从我的桌面推送到我的git服务器吗?然后重新应用修补程序并将所有内容都拉回笔记本电脑上?
如果需要提供更多信息,请告诉我。
TIA, Fossie
这是有点不清楚你的意思是“搞砸了”。如果你的意思是“消灭”,那么通过一切手段,推回到那里。如果你的意思是“推送一个错误的提交”,那么你可能只是想恢复提交。我想你是在这两个极端之间的某个地方? – Cascabel 2010-11-24 15:37:27