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

Git基本操作

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

标签:基本操作   git   

在仓库目录下创建文件

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基本操作

标签:基本操作   git   

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

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