- 3 years
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.
- 3 years
Rename it, so you can run diff on those surprising things that in no way could have changed, but are not equal to the repository. And then delete.
Or keep the X-old; X-backup; X-bkp; X-old-old; X-old3 dirs.
- 3 years
I think
git cleanis more appropriate. Withgit stashyou create a stash which you then have to drop.- 3 years
Who says you have to drop it? I’ve got stuff from 2007 in there somewhere.
- 3 years
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.
- 3 years
i chuckled at the thought of ‘git poop’ being a command. I’m going to alias that to something.
- 3 years
git restoreis a pretty new command AFAIK. Those of us who learned git before its existence have probably stuck to the old ways ofgit reset --hard.
- girltwink@lemmy.worldEnglish3 years
alias mybad=‘git add -u && git commit --amend --no-edit && git push --force-with-lease’

