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
$ git add . # add to index only files created or modified and not those deleted | |
$ git add -u # add to index only files modified or deleted and not those created | |
$ git add -A # do both operation at once, add to index all files |
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
#Unstage a single file from the "about to be commited" | |
git reset filename.txt | |
#Unstage a "git add ." | |
git reset |