Skip to content

Instantly share code, notes, and snippets.

@vquaiato
Created April 27, 2012 13:48
Show Gist options
  • Save vquaiato/2509404 to your computer and use it in GitHub Desktop.
Save vquaiato/2509404 to your computer and use it in GitHub Desktop.
usando git add -u
vquaiato [~/Desktop/foo] (master) $ rm foo
vquaiato [~/Desktop/foo] (master *) $ git add -u
vquaiato [~/Desktop/foo] (master +) $ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# deleted: foo
#
vquaiato [~/Desktop/foo] (master +) $ git commit -m "removeno foo"
[master 86f025a] removeno foo
0 files changed, 0 insertions(+), 0 deletions(-)
delete mode 100644 foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment