首页 > 其他 > 详细

Git基本操作

时间:2017-03-16 22:53:17      阅读:265      评论:0      收藏:0      [点我收藏+]

在仓库目录下创建文件

touch hello.php
ls -a
ls

命令行输出

技术分享


查看项目的状态

git status -s

命令行输出

技术分享


添加文件

git add hello.php

命令行输出

技术分享


git status输出的是项目文件详情

git status

命令行输出

技术分享


修改hello.php文件内容

vim hello.php
//内容
<?php
        echo "hello";
?>

使用git status -s查看

git status -s

使用git diff查看

git diff

命令行输出

技术分享

本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1907135

Git基本操作

原文:http://suyanzhu.blog.51cto.com/8050189/1907135

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!