Created
June 1, 2012 11:18
-
-
Save kentfredric/2851330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> git init | |
Initialized empty Git repository in /tmp/fgit/.git/ | |
> touch first | |
> git status | |
# On branch master | |
# | |
# Initial commit | |
# | |
# Untracked files: | |
# (use "git add <file>..." to include in what will be committed) | |
# | |
# first | |
nothing added to commit but untracked files present (use "git add" to track) | |
> git add first | |
> git commit -m 'first' | |
[master (root-commit) bfd8ba9] first | |
0 files changed | |
create mode 100644 first | |
> touch second | |
> git add second | |
> git commit -m 'second' | |
[master a373166] second | |
0 files changed | |
create mode 100644 second | |
> touch third | |
> git add third | |
> git commit -m 'third' | |
[master e43bbfc] third | |
0 files changed | |
create mode 100644 third | |
> git rm third | |
rm 'third' | |
> git status | |
# On branch master | |
# Changes to be committed: | |
# (use "git reset HEAD <file>..." to unstage) | |
# | |
# deleted: third | |
# | |
> git commit -m 'rm third' | |
[master 734a878] rm third | |
0 files changed | |
delete mode 100644 third | |
> git log --oneline | cat | |
734a878 rm third | |
e43bbfc third | |
a373166 second | |
bfd8ba9 first | |
> git cat-file -p 734a878 | |
tree 33b58fc7b22b62d2688129200a3d68fb6e278650 | |
parent e43bbfce245f22adf1b52de530cd38d51c218150 | |
author Kent Fredric <kentfredric@gmail.com> 1338549350 +1200 | |
committer Kent Fredric <kentfredric@gmail.com> 1338549350 +1200 | |
rm third | |
> git cat-file -p a373166 | |
tree 33b58fc7b22b62d2688129200a3d68fb6e278650 | |
parent bfd8ba9a8ca699594fbca901afb4f29ac5930af0 | |
author Kent Fredric <kentfredric@gmail.com> 1338549268 +1200 | |
committer Kent Fredric <kentfredric@gmail.com> 1338549268 +1200 | |
second | |
git cat-file -p e43bbfc | |
tree 135f64fde97fb031e4f601635c1db007332023ee | |
parent a3731665f470f779cc5d83d01aed0da69b23a460 | |
author Kent Fredric <kentfredric@gmail.com> 1338549280 +1200 | |
committer Kent Fredric <kentfredric@gmail.com> 1338549280 +1200 | |
third | |
git cat-file -p 135f64fde97fb031e4f601635c1db007332023ee | |
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 first | |
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 second | |
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 third |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment