git删除某次提交(某个commit)的方法

input>git log
out>fatal: your current branch 'master' does not have any commits yet
input > git rebase -i xxx
out>invalid upstream 

input > git rebase -i xxxXXXXXXXXXXXXXXX
out>fatal: Could not parse object 
 input>git log --pretty=format:XXX
out>fatal: ambiguous argument 'XXX': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git  [...] -- [...]'

 

总结:网上的辣鸡教程全部失败,只有简单粗暴地删除commit重新上传项目

你可能感兴趣的:(ERROR,python3)