Reseting remote to a certain commit Assuming that your branch is called master both here and remotely, and that your remote is called origin you could do: git reset --hard <commit-hash> git push -f origin master However, you should avoid doing this
一.问题 近期在使用git时遇到一个问题,就是在git上传文件时,将一个100兆的大文件添加到了git,并执行了push操作,这时在上传完毕后,会提示这个错误 Large files detected see http:git.io/iEPt8g for more information this is larger than GitHubs recommended maximum file size of 50MB 即git无法上传超过50M的单个文件. 如果未push,可通过git comm