Skip to content

Instantly share code, notes, and snippets.

@goenning
Created February 28, 2011 22:46
Show Gist options
  • Save goenning/848203 to your computer and use it in GitHub Desktop.
Save goenning/848203 to your computer and use it in GitHub Desktop.
When I do "git status", this is shown:
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: example/HelloWorldMvc/HelloWorldMvc.csproj
# modified: example/TrackWebService/TrackWebService.csproj
#
# Changed but not updated:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: example/HelloWorldMvc/Scripts/MicrosoftAjax.debug.js
# deleted: example/HelloWorldMvc/Scripts/MicrosoftAjax.js
# deleted: example/HelloWorldMvc/Scripts/MicrosoftMvcAjax.debug.js
# deleted: example/HelloWorldMvc/Scripts/MicrosoftMvcAjax.js
# deleted: example/HelloWorldMvc/Scripts/MicrosoftMvcValidation.debug.j
s
# deleted: example/HelloWorldMvc/Scripts/MicrosoftMvcValidation.js
# deleted: example/HelloWorldMvc/Scripts/jquery-1.4.4-vsdoc.js
# deleted: example/HelloWorldMvc/Scripts/jquery-1.4.4.js
# deleted: example/HelloWorldMvc/Scripts/jquery-ui.js
# deleted: example/HelloWorldMvc/Scripts/jquery-ui.min.js
# deleted: example/HelloWorldMvc/Scripts/jquery.unobtrusive-ajax.js
# deleted: example/HelloWorldMvc/Scripts/jquery.unobtrusive-ajax.min.js
# deleted: example/HelloWorldMvc/Scripts/jquery.validate-vsdoc.js
# deleted: example/HelloWorldMvc/Scripts/jquery.validate.js
# deleted: example/HelloWorldMvc/Scripts/jquery.validate.min.js
# deleted: example/HelloWorldMvc/Scripts/jquery.validate.unobtrusive.js
# deleted: example/HelloWorldMvc/Scripts/jquery.validate.unobtrusive.mi
n.js
I removed these files through Windows Explorer, how do I tell git to remove these files without going one by one with the "git rm <file>" command? He managed to find the files I deleted, now I want to confirm that he can remove them all.
@goenning
Copy link
Author

goenning commented Mar 2, 2011

The answer is:
git add -u
git commit -m "removing some unused js files"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment