1
請幫助。我犯了一個錯誤:恢復丟失遠程git提交
我將分支從承諾a
提交到承諾b
。
現在提交a
錯過或分離。
當我想:
組標籤上gitlab當地mashine提交a
或
git checkout a && git checkout -b branch-name && git push origin branch-name
我得到錯誤
remote: fatal: ambiguous argument '1fcdaca7723d5939178c2557254c124aee30ec2d~1': unknown revision or path not in the working tree. remote: Use '--' to separate paths from revisions, like this: remote: 'git <command> [<revision>...] -- [<file>...]'
如何修復?