mv .git .git_old7
git init
git add .
git commit -m “almost working”
Lmao this is perfect
Neither remove untracked files sadly.
git stash my friend
I think
git clean
is more appropriate. Withgit 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.
Of course you don’t have to, but if you don’t plan on ever using it then it’s just trash living in your git folder. If you do plan on using it again in the future, then it’s usually better to make it a branch so you can push it to a remote.
Yea but you can always
git pop
if you need any of your stashed changes
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 ofgit reset --hard
.
alias mybad=‘git add -u && git commit --amend --no-edit && git push --force-with-lease’
😂😂😂
And lose my untracked changes?
git stash