总结几个常用的git命令。
git克隆项目(下载代码)
#git clone http://192.168.0.223/git/test
git clone git@github.com:laiweiwei/vms.git
git clone git@github.com:syking/smrt-lbs-new.git
复制粘帖方法:
git bash控制台–标题栏–右键–编辑–标记/粘帖
git更新内容
cd /d
cd play/smrt-lbs
git pull origin
提交到本地
cd /d
cd play/smrt-lbs
git add .
git commit -m “some string”
提交到服务器
git push -u origin master
删除文件(直接删除后需要重新用命令删除)
$ git rm app/views/Application/index.html
rm ‘app/views/Application/index.html’
查看文件状态
git status
[整理自网络]
Post a comment now »
本文目前不可评论
Sorry, the comment form is closed at this time.
No comments yet.