Re:Confusing Git Terminology
by sleepybrett on Thursday November 02, 2023 @04:33PM
(#38119733)
Yeah anyone I run into that 'doesn't get git' and only has like the four commands they ever run... I point them at https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
Once you internalize that git unlocks.
Re:Confusing Git Terminology
by cloudwalk9 on Thursday November 02, 2023 @06:14PM
(#38121045)
I use Stable Diffusion (A1111 webui) and sometimes run into config issues, sometimes untracked by git. Nothing more catastrophic than doing `git clean -dfx` by habit from tinkering with Debian packages and knowing that command actually resets everything that `git reset --hard` doesn't...
And then accidentally wiping out all of your checkpoints and generated images :')
Hardlink your checkpoints elsewhere, this way you don't have to keep them around elsewhere. Alternatively, make your models directory a symlink. (I don't think you can symlink the models themselves, I think that'll break it)
You can still use git and have it be useful even if you don't fully inderstand it, so I disagree with the CS degree notion.
The joke that isn't a joke is that you really need a CS degree to use git. It's not wrong.
The git default arguments makes for a very inconsistent experience, agreed.
And then `git checkout .` vs `git reset --hard/soft` vs `git cleanup` are all super similar but very different.
Still love it more than perforce/svn (I did like mercurial a little better back in the day but I doubt that might still be the case).
----- `git reflog` is king and shows you the truth.