Skip to content

Instantly share code, notes, and snippets.

@wfarr
Created January 14, 2012 00:47
Show Gist options
  • Save wfarr/1609626 to your computer and use it in GitHub Desktop.
Save wfarr/1609626 to your computer and use it in GitHub Desktop.
› git show i-herd-u-liek-chef:foo
bar
› git show i-herd-u-liek-chef~1:foo
fatal: Path 'foo' exists on disk, but not in 'i-herd-u-liek-chef~1'.
git diff master@{1 week ago}
git show HEAD@{2}
git diff master..i-herd-u-liek-chef
› git reflog
0a4faaa HEAD@{0}: checkout: moving from 0a4faaaf0081e2a5e439e79f48e236cdfbcb687b to i-herd-u-liek-chef
0a4faaa HEAD@{1}: commit: Remove unnecessary comment.
d4fdbdb HEAD@{2}: commit: Real namespaces in the app code now.
fc16081 HEAD@{3}: commit: Suddenly, NAMESPACES
b36e3a8 HEAD@{4}: clone: from git@github.com:wfarr/censored.git
› git show i-herd-u-liek-chef^{tree}
tree i-herd-u-liek-chef^{tree}
.gitignore
Gemfile
Gemfile.lock
README.mkdn
Rakefile
config.ru
foo
lib/
public/
test/
› git show i-herd-u-liek-chef~1^{tree}
tree i-herd-u-liek-chef~1^{tree}
.gitignore
Gemfile
Gemfile.lock
README.mkdn
Rakefile
config.ru
lib/
public/
test/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment