Skip to content

Instantly share code, notes, and snippets.

@wpalmer
Created February 15, 2011 20:48
Show Gist options
  • Save wpalmer/828211 to your computer and use it in GitHub Desktop.
Save wpalmer/828211 to your computer and use it in GitHub Desktop.
[shruggar@walleee t]$ git init
Initialized empty Git repository in /home/shruggar/git/t/.git/
[shruggar@walleee t]$ mkdir -p foo/bar/baz
[shruggar@walleee t]$ cd foo/bar
[shruggar@walleee bar]$ ls
baz
[shruggar@walleee bar]$ touch baz/A
[shruggar@walleee bar]$ touch baz/B
[shruggar@walleee bar]$ git add baz/*
[shruggar@walleee bar]$ git commit -m A
[master (root-commit) 12e69ca] A
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 foo/bar/baz/A
create mode 100644 foo/bar/baz/B
[shruggar@walleee bar]$ git rm baz/A
rm 'foo/bar/baz/A'
[shruggar@walleee bar]$ git commit ../
[master 8c267b6] foo?
0 files changed, 0 insertions(+), 0 deletions(-)
delete mode 100644 foo/bar/baz/A
[shruggar@walleee bar]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment