Neither remove untracked files sadly.
I think git clean
is more appropriate. With git stash
you create a stash which you then have to drop.
Who says you have to drop it? I’ve got stuff from 2007 in there somewhere.
fuck it. rm -rf repository; git clone repository
Been using git since almost as long as its been around, still can’t be bothered to learn to how to fix conflicts.
mv .git .git_old7
git init
git add .
git commit -m “almost working”
git restore .
?
Or am I misinterpreting the problem?
git restore
is a pretty new command AFAIK. Those of us who learned git before its existence have probably stuck to the old ways of git reset --hard
.
And lose my untracked changes?