Created
October 11, 2017 11:10
-
-
Save wujiyu115/13c0aaee82b0925b731e7656b78aa4af to your computer and use it in GitHub Desktop.
Add all files to a commit except a single file?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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