最新回答 / _酒館里的貓
git reset --hard HEAD^//回到上一個版本,或者把HEAD^換成提交ID,用git log --pretty=oneline可以看到一長串的16進(jìn)制字符,那就是提交ID
2015-03-09
最贊回答 / Kaming
解決方案:vim .git/config修改[remote?"origin"]??????url?=?https://github.com/youname/example.git??為:[remote?"origin"]??????url?=?https://youname@github.com/youname/example.git??再次git push,彈出框輸入密碼(你在github上注冊的用戶名和密碼),即可提交
2015-02-05