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.
68 3 ReplyRename 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.
17 0 Reply
mv .git .git_old7
git init
git add .
git commit -m "almost working"
47 0 ReplyLmao this is perfect
5 0 Reply
Neither remove untracked files sadly.
14 0 Replygit stash my friend
8 1 ReplyI think
git clean
is more appropriate. Withgit stash
you create a stash which you then have to drop.15 1 Reply
That's why I follow it with
git clean -fd
1 0 Reply
git restore .
?
Or am I misinterpreting the problem?12 1 Replygit 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
.16 0 ReplyYep, I just learned of this command..
3 0 Reply
alias mybad='git add -u && git commit --amend --no-edit && git push --force-with-lease'
8 0 Reply😂😂😂
2 0 Reply
And lose my untracked changes?
5 0 Replygit stash
2 0 ReplyThat is stupid. Those commands are for different use cases.
3 1 Reply