标签:
echo # UsefulTest >> README.md git init 初始化本地项目 git add README.md 添加文件 git commit -m "first commit" 提交 git remote add origin https://github.com/vagrant1991/UsefulTest.git 添加远程路径 git push -u origin master 上传
git clone https://github.com/vagrant1991/UsefulTest.git 复制到本地
git reset --soft HEAD~1 重置HEAD文件 参考:http://stackoverflow.com/questions/927358/how-to-undo-the-last-commit
标签:
原文地址:http://www.cnblogs.com/vagrant1991/p/4646200.html