29

I have a project containing a few modules. There were some commits previously.

How do I stage all the files (modified, deleted, created) and folders in the project but the one specific folder and all files in it?

Alan Coromano
  • 24,958
  • 53
  • 135
  • 205

1 Answers1

67
git add .
git reset -- somefolder_to_exclude
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928