发表于: other | 作者: | 日期: 2013/4/02 01:04
标签:

总结几个常用的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

[整理自网络]

: https://blog.darkmi.com/2013/04/02/3200.html

本文相关评论 - 1条评论都没有呢
Post a comment now » 本文目前不可评论

No comments yet.

Sorry, the comment form is closed at this time.