Reputation: 596
So I was searching around about this and didn't find a exact answer, should be a simple command I think for a simple process.
So basically I want:
How to move them down to untracked so I can easily get them back when I want to push them, how to in a fast way?
Upvotes: 11
Views: 18731
Reputation: 27295
There are some possibilities. You can make a new branch checkout the new branch and commit the changes to the new branch and work on that branch.
Your changes will exist if you change the branch only if you have a conflict in that new branch you get an error but if you create a new you have no problems.
If you want to revert your change then you can find the answer in your image.
git checkout filename
with
git rm --cached filename
you can remove that file from your repo but keep it on you local disk.
Upvotes: 21