You might have lot of unstaged files, which you dont want to submit to GIT. You can use CHECKOUT option from the git to do this.
1. Removing a single file
>git checkout <filename>
2. Removing all unstaged files.
>git checkout reset --hard
3. Sometimes, option (2) does not work. you can use the following option.
> git checkout -- .
Make sure to include the period at the end of command.
1. Removing a single file
>git checkout <filename>
2. Removing all unstaged files.
>git checkout reset --hard
3. Sometimes, option (2) does not work. you can use the following option.
> git checkout -- .
Make sure to include the period at the end of command.
No comments:
Post a Comment