Command | New files | Changed files | Deleted files |
Alice/> git init
Initialized empty Git repository in /home/rene/github/github/git-internals/repos/log/Alice/.git/
snap no: 1 | | | |
Alice/> echo one > one.txt
snap no: 2 | | | |
snap no: 3 | | | |
Alice/> git commit -m "First commit"
[master (root-commit) 9bbd2a9] First commit
1 file changed, 1 insertion(+)
create mode 100644 one.txt
snap no: 4 | | | |
Alice/> echo two > two.txt
snap no: 5 | | | |
snap no: 6 | | | |
Alice/> echo two >> one.txt
snap no: 7 | | | |
Alice/> git commit -m "Second commit"
[master 0be25df] Second commit
1 file changed, 1 insertion(+)
create mode 100644 two.txt
snap no: 8 | | | |
Alice/> echo three > three.txt
snap no: 9 | | | |
Alice/> echo three >> one.txt
snap no: 10 | | | |
snap no: 11 | | | |
Alice/> git commit -m "Third commit"
[master 083cc65] Third commit
2 files changed, 3 insertions(+)
create mode 100644 three.txt
snap no: 12 | | | |
Alice/> git log
commit 083cc65c74de1cdf24eb613c77d851608509e3f9
Author: René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
Date: Fri Jan 1 00:11:00 2016 +0100
Third commit
commit 0be25dfcc8da2b47aaf16bfe6f52b76ff8c12ee3
Author: René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
Date: Fri Jan 1 00:07:00 2016 +0100
Second commit
commit 9bbd2a91bef02398b59196d4d378d67ff68e2595
Author: René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
Date: Fri Jan 1 00:03:00 2016 +0100
First commit
snap no: 13 | | | |
Alice/> git log -p
commit 083cc65c74de1cdf24eb613c77d851608509e3f9
Author: René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
Date: Fri Jan 1 00:11:00 2016 +0100
Third commit
diff --git a/one.txt b/one.txt
index 5626abf..4cb29ea 100644
--- a/one.txt
+++ b/one.txt
@@ -1 +1,3 @@
one
+two
+three
diff --git a/three.txt b/three.txt
new file mode 100644
index 0000000..2bdf67a
--- /dev/null
+++ b/three.txt
@@ -0,0 +1 @@
+three
commit 0be25dfcc8da2b47aaf16bfe6f52b76ff8c12ee3
Author: René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
Date: Fri Jan 1 00:07:00 2016 +0100
Second commit
diff --git a/two.txt b/two.txt
new file mode 100644
index 0000000..f719efd
--- /dev/null
+++ b/two.txt
@@ -0,0 +1 @@
+two
commit 9bbd2a91bef02398b59196d4d378d67ff68e2595
Author: René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
Date: Fri Jan 1 00:03:00 2016 +0100
First commit
diff --git a/one.txt b/one.txt
new file mode 100644
index 0000000..5626abf
--- /dev/null
+++ b/one.txt
@@ -0,0 +1 @@
+one
snap no: 14 | | | |
Alice/> git log --stat --summary
commit 083cc65c74de1cdf24eb613c77d851608509e3f9
Author: René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
Date: Fri Jan 1 00:11:00 2016 +0100
Third commit
one.txt | 2 ++
three.txt | 1 +
2 files changed, 3 insertions(+)
create mode 100644 three.txt
commit 0be25dfcc8da2b47aaf16bfe6f52b76ff8c12ee3
Author: René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
Date: Fri Jan 1 00:07:00 2016 +0100
Second commit
two.txt | 1 +
1 file changed, 1 insertion(+)
create mode 100644 two.txt
commit 9bbd2a91bef02398b59196d4d378d67ff68e2595
Author: René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
Date: Fri Jan 1 00:03:00 2016 +0100
First commit
one.txt | 1 +
1 file changed, 1 insertion(+)
create mode 100644 one.txt
snap no: 15 | | | |