我想將我的應用程序恢復到我所做的舊提交。使用git恢復我的應用程序
我做出承諾如下:
git的承諾-m 「嗒嗒」
當我按下 「混帳日誌」 我看到所有我做了提交的。
如何使用git恢復我的應用程序?
編輯:
我做混帳推(到Heroku的),它說:
error: failed to push some refs to '[email protected]:asfalt.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
請注意,這將僅恢復指定的提交,但不會將檢出重置爲此提交的狀態。這似乎並不是問題所在 – 2011-03-09 20:43:04