Discuss / Git / 评论: 版本回退

评论: 版本回退

Topic source

唐朝小强

#1 Created at ... [Delete] [Delete and Lock User]

@别地孤天

是的,我用^报错了,用~就成功了。

git reset --hard HEAD^

More?

More?

fatal: ambiguous argument 'HEAD

': unknown revision or path not in the working

Use '--' to separate paths from revisions, lik

'git <command> [<revision>...] -- [<file>...]'


  • 1

Reply