$ cat readme.txt
Git is a version control system.
Git is free software.
Git is a distributed version control system.
Git is free software.
添加一行测试工作区、暂存区、分支。
cat 命令测试。
$ git status
On branch master
nothing to commit, working tree clean
$ git log
commit 3b8f1b20d0c3e238f413076c4f4715910156f570 (HEAD -> master)
Author: Rattenking <[email protected]>
Date: Sat Sep 29 14:14:19 2018 +0800
cat命令测试
commit 500dceab4bd5261c3fd9acd65df90d4e653d2047
Author: Rattenking <[email protected]>
Date: Sat Sep 29 11:35:05 2018 +0800
提交工作区、暂存区、分支测试
commit e2addc717e8e35a61c1748219095b06fd9cbff46
Author: Rattenking <[email protected]>
Date: Fri Sep 28 16:54:05 2018 +0800
添加了两句话
commit 101462868fcc996bd42169709499dbd33975847c
Author: Rattenking <[email protected]>
Date: Fri Sep 28 14:30:41 2018 +0800
wrote a readme file
现在我们已经清楚初始各个区的状态!
$ cat readme.txt
Git is a version control system.
Git is free software.
Git is a distributed version control system.
Git is free software.
添加一行测试工作区、暂存区、分支。
cat 命令测试。
测试修改文件后各区状态!
$ git status
On branch master
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)
modified: readme.txt
no changes added to commit (use "git add" and/or "git commit -a")
$ git log --pretty=oneline
3b8f1b20d0c3e238f413076c4f4715910156f570 (HEAD -> master) cat命令测试
500dceab4bd5261c3fd9acd65df90d4e653d2047 提交工作区、暂存区、分支测试
e2addc717e8e35a61c1748219095b06fd9cbff46 添加了两句话
101462868fcc996bd42169709499dbd33975847c wrote a readme file
$ git add readme.txt
$ cat readme.txt
Git is a version control system.
Git is free software.
Git is a distributed version control system.
Git is free software.
添加一行测试工作区、暂存区、分支。
cat 命令测试。
测试修改文件后各区状态!
$ git status
On branch master
Changes to be committed:
(use "git reset HEAD ..." to unstage)
modified: readme.txt
$ git log --pretty=oneline
3b8f1b20d0c3e238f413076c4f4715910156f570 (HEAD -> master) cat命令测试
500dceab4bd5261c3fd9acd65df90d4e653d2047 提交工作区、暂存区、分支测试
e2addc717e8e35a61c1748219095b06fd9cbff46 添加了两句话
101462868fcc996bd42169709499dbd33975847c wrote a readme file
$ git commit -m "测试管理修改提交"
[master 5cc8766] 测试管理修改提交
1 file changed, 2 insertions(+), 1 deletion(-)
$ cat readme.txt
Git is a version control system.
Git is free software.
Git is a distributed version control system.
Git is free software.
添加一行测试工作区、暂存区、分支。
cat 命令测试。
测试修改文件后各区状态!
$ git status
On branch master
nothing to commit, working tree clean
$ git log --pretty=oneline
5cc8766c378c412c3f6f476c57987aadc344f426 (HEAD -> master) 测试管理修改提交
3b8f1b20d0c3e238f413076c4f4715910156f570 cat命令测试
500dceab4bd5261c3fd9acd65df90d4e653d2047 提交工作区、暂存区、分支测试
e2addc717e8e35a61c1748219095b06fd9cbff46 添加了两句话
101462868fcc996bd42169709499dbd33975847c wrote a readme file
$ git diff
$ git diff
diff --git a/readme.txt b/readme.txt
index 29c21cd..7cf2360 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,4 +4,5 @@ Git is a distributed version control system.
Git is free software.
添加一行测试工作区、暂存区、分支。
cat 命令测试。
-测试修改文件后各区状态!
\ No newline at end of file
+测试修改文件后各区状态!
+测试git diff,查看工作区和分支文件的修改情况!
\ No newline at end of file
QQ交流群: 264303060
我的博客,欢迎交流!
我的CSDN博客,欢迎交流!
微信小程序专栏
前端笔记专栏
微信小程序实现部分高德地图功能的DEMO下载
微信小程序实现MUI的部分效果的DEMO下载
微信小程序实现MUI的GIT项目地址
微信小程序实例列表
前端笔记列表
游戏列表