码迷,mamicode.com
首页 > 其他好文 > 详细

Git学习

时间:2015-07-14 20:16:08      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:

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
 

Git学习

标签:

原文地址:http://www.cnblogs.com/vagrant1991/p/4646200.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!