2 files changed, 2 insertions(+) create mode 100644 README 好,现在你已经创建了第一个提交! 可以看到,提交后它会告诉你,当前是在哪个分支(master)提交的,本次提交的完整 SHA-1 校验和是什么(463dc4f),以及在本次提交中,有多少文件修订过,多少行添加和删改过。
1file changed,1insertion(+) 提交后,再看看状态: 1 2 3 4 5 6 7 8 9 $ git status # On branch master # Changes not stagedforcommit: # (use"git add <file>..."to update what will be committed) # (use"git checkout -- <file>..."to discard changes in working directory) # # mo...
1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 master_file [root@localhost test]# echo "more foo" >> master_file [root@localhost test]# git commit master_file [master 8b6ce36] Change master_file 1 files changed, 1 insertions(+), 0 deletions(-) [root@localhost ...
$ git log --pretty=format:"%h - %an, %ar : %s" ca82a6d - Scott Chacon, 11 months ago : changed the version number 085bb3b - Scott Chacon, 11 months ago : removed unnecessary test code a11bef0 - Scott Chacon, 11 months ago : first commit 表2-1 列出了常用的格式占位符写法及其...
This leaves all your changed files "Changes to be committed", as `git status` would put it. 仅仅重置HEAD指向`<commit>`,而并不会改变暂存区和工作区的内容。 --hard: Resets the index and working tree. Any changes to tracked files in the working tree since `<commit>`are discarded. 将HEAD...
$ git checkout master Switched to branch 'master' 已经在issue1分支进行了编辑上一页的档案,所以master分支的myfile.txt的内容没有更改。 $ git merge issue1 Updating 1257027..b2b23c4 Fast-forward myfile.txt | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) master分支指向的提交移动到和...
1 files changed, 1 insertions(+) create mode 100644 foo.txt (my-branch)$ git log commit 4e3cd85a670ced7cc17a2b5d8d3d809ac88d5012 Author: siemiatjsiemiatj@example.com Date: Wed Jul 30 00:34:10 2014 +0200 foo.txt added commit 69204cdf0acbab201619d95ad8295928e7f411d5 ...
$ git checkout -- Rhino.Etl.Core/Enumerables/CachingEnumerable.cs rbellamy@PROMETHEUS /d/Development/rhino-etl (master) $ git status # On branch master # Changed but not updated: # (use "git add <file>..." to update what will be committed) ...
yml | 0 2 files changed, 0 insertions(+), 0 deletions(-) commit e410642799a3cea3834122abd96f8dd9977dd407 Author: Sunshuaju <825658839@qq.com> Date: Tue Mar 27 19:21:15 2018 +0800 Add file sync module test-file-sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ...
[mian e4bab65] --amend 2 files changed, 2 deletions(-) delete mode 100644 love.txt rename test.txt => tese01.txt (100%) [root@localhost git_study]# git status 位于分支 mian 未跟踪的文件: (使用 "git add <文件>..." 以包含要提交的内容) .gitignore MySQL/ rm-f.txt 提交为空,...