blog » Svn/Git/Github » Git常用命令总结

Git常用命令总结

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

[整理自网络]

This post has already been read 1199 times!

Related posts

RSS 2.0 | leave a response | trackback

发表评论