Skip to content

Instantly share code, notes, and snippets.

Created May 11, 2011 14:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/966497 to your computer and use it in GitHub Desktop.
no@yorceev ~ % git init foo
Initialized empty Git repository in /home/no/foo/.git/
no@yorceev ~ % cd foo
no@yorceev ~/foo % git init bar
Initialized empty Git repository in /home/no/foo/bar/.git/
no@yorceev ~/foo % cd bar
no@yorceev ~/foo/bar % touch qux
no@yorceev ~/foo/bar % git add .
no@yorceev ~/foo/bar % git commit -m 'lol'
[master (root-commit) 5e3c59a] lol
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 qux
no@yorceev ~/foo/bar % cd ..
no@yorceev ~/foo % git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# bar/
nothing added to commit but untracked files present (use "git add" to track)
no@yorceev ~/foo % git clean -f -d
Removing bar/
no@yorceev ~/foo % git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# bar/
nothing added to commit but untracked files present (use "git add" to track)
no@yorceev ~/foo % ls
bar
no@yorceev ~/foo %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment