Skip to content

Instantly share code, notes, and snippets.

@wujiyu115
Created October 11, 2017 11:10
Show Gist options
  • Save wujiyu115/13c0aaee82b0925b731e7656b78aa4af to your computer and use it in GitHub Desktop.
Save wujiyu115/13c0aaee82b0925b731e7656b78aa4af to your computer and use it in GitHub Desktop.
Add all files to a commit except a single file?
For a File
```
git add -u
git reset -- main/dontcheckmein.txt
```
For a fold
``
git add -u
git reset -- main/*
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment