Every developer making use of git from the command-line has mistakenly invoked "git add". The "git add" command commits a change or changes from the current working tree to a staging area where this change can be later committed to the repository.
To rollback an add associated with a single file, invoke git reset specifying the file to be rolled back (un-stage the file):
git reset <file>
To rollback all files added but not committed, invoke git reset without the <file> parameter specified:
git reset
No comments :
Post a Comment