Git学习

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
 

posted on 2015-07-14 18:16  流浪者的五月  阅读(92)  评论(0)    收藏  举报

导航