what to do with unstaged changes after reset 1

what to do with unstaged changes after reset

git rm --cached -r .

Here is what the above code is Doing:
1. git rm –cached -r .
– This will remove all the files from the index.
2. git add .
– This will add all the files to the index.
3. git commit -m “Removed all files from the index”
– This will commit the changes.
4. git push origin master
– This will push the changes to the remote repository.

Similar Posts