Skip to content

Instantly share code, notes, and snippets.

View anteaya's full-sized avatar

Anita Kuno anteaya

View GitHub Profile
$ git log
commit 6eb298f9c5858291ac817dca4238957b628e7200
Author: Anita Kuno <akuno@lavabit.com>
Date: Tue Feb 26 09:37:09 2013 -0500
Adding my third file. I am adding it to the master branch. This will be my s
commit d561f82d45e267593220296ac3e956e47a98717f
Author: Anita Kuno <akuno@lavabit.com>
Date: Tue Feb 26 08:26:37 2013 -0500
$ cat .git/refs/heads/master
6eb298f9c5858291ac817dca4238957b628e7200
$ cat .git/refs/heads/feature
edc4bc271061087657dbeb4e56970da8c84f4ac6
$ cat .git/logs/HEAD
0000000000000000000000000000000000000000 d561f82d45e267593220296ac3e956e47a98717f Anita Kuno <akuno@lavabit.com> 1361885197 -0500 commit (initial): adding my first file
d561f82d45e267593220296ac3e956e47a98717f d561f82d45e267593220296ac3e956e47a98717f Anita Kuno <akuno@lavabit.com> 1361886063 -0500 checkout: moving from master to feature
d561f82d45e267593220296ac3e956e47a98717f edc4bc271061087657dbeb4e56970da8c84f4ac6 Anita Kuno <akuno@lavabit.com> 1361888950 -0500 commit: this is my second commit, made to the topic branch named feature
edc4bc271061087657dbeb4e56970da8c84f4ac6 d561f82d45e267593220296ac3e956e47a98717f Anita Kuno <akuno@lavabit.com> 1361889352 -0500 checkout: moving from feature to master
d561f82d45e267593220296ac3e956e47a98717f 6eb298f9c5858291ac817dca4238957b628e7200 Anita Kuno <akuno@lavabit.com> 1361889429 -0500 commit: Adding my th
$ git commit -m 'Adding my third file. I am adding it to the master branch. This will be my second commit to the master branch.'
[master 6eb298f] Adding my third file. I am adding it to the master branch. This will be my second commit to the master branch.
1 file changed, 1 insertion(+)
create mode 100644 third_file.txt
$ tree .git
.git
├── branches
├── COMMIT_EDITMSG
├── config
├── HEAD
$ vi third_file.txt
$ git add .
$ git checkout master
Switched to branch 'master'
$ git log
commit edc4bc271061087657dbeb4e56970da8c84f4ac6
Author: Anita Kuno <akuno@lavabit.com>
Date: Tue Feb 26 09:29:10 2013 -0500
this is my second commit, made to the topic branch named feature
commit d561f82d45e267593220296ac3e956e47a98717f
Author: Anita Kuno <akuno@lavabit.com>
Date: Tue Feb 26 08:26:37 2013 -0500
$ cat .git/refs/heads/master
d561f82d45e267593220296ac3e956e47a98717f
$ cat .git/refs/heads/feature
edc4bc271061087657dbeb4e56970da8c84f4ac6
$ cat .git/logs/HEAD
0000000000000000000000000000000000000000 d561f82d45e267593220296ac3e956e47a98717f Anita Kuno <akuno@lavabit.com> 1361885197 -0500 commit (initial): adding my first file
d561f82d45e267593220296ac3e956e47a98717f d561f82d45e267593220296ac3e956e47a98717f Anita Kuno <akuno@lavabit.com> 1361886063 -0500 checkout: moving from master to feature
d561f82d45e267593220296ac3e956e47a98717f edc4bc271061087657dbeb4e56970da8c84f4ac6 Anita Kuno <akuno@lavabit.com> 1361888950 -0500 commit: this is my second commit, made to the topic branch named feature
$ cat .git/logs/refs/heads/master
0000000000000000000000000000000000000000 d561f82d45e267593220296ac3e956e47a98717f Anita Kuno <akuno@lavabit.com> 1361885197 -0500 commit (initial): adding my first file
$ git commit -m 'this is my second commit, made to the topic branch named feature'
[feature edc4bc2] this is my second commit, made to the topic branch named feature
1 file changed, 1 insertion(+)
create mode 100644 second_file.txt
$ tree .git
.git
├── branches
├── COMMIT_EDITMSG
├── config
├── HEAD
$ cat .git/refs/heads/master
d561f82d45e267593220296ac3e956e47a98717f
$ cat .git/refs/heads/feature
d561f82d45e267593220296ac3e956e47a98717f
$ cat .git/logs/HEAD
0000000000000000000000000000000000000000 d561f82d45e267593220296ac3e956e47a98717f Anita Kuno <akuno@lavabit.com> 1361885197 -0500 commit (initial): adding my first file
d561f82d45e267593220296ac3e956e47a98717f d561f82d45e267593220296ac3e956e47a98717f Anita Kuno <akuno@lavabit.com> 1361886063 -0500 checkout: moving from master to feature
$ cat .git/logs/refs/heads/master
0000000000000000000000000000000000000000 d561f82d45e267593220296ac3e956e47a98717f Anita Kuno <akuno@lavabit.com> 1361885197 -0500 commit (initial): adding my first file
$ cat .git/logs/refs/heads/feature
$ git add second_file.txt
$ tree .git
.git
├── branches
├── COMMIT_EDITMSG
├── config
├── HEAD
├── index
├── logs
│ ├── HEAD