85 points · by todsacerdoti · 4y ago · 75 comments
I resisted having a swear-free version for a long time! but, I heard from many folks that the swear-y url was blocked by their networks at work or school, and they wanted to be able to view & share the content too. I had also heard from a high school comp sci teacher that they wanted to share the OSG tips & knowledge with their students, but couldn’t because of the swears.
So, I decided to create the swear-free version to be more inclusive and allow more people to access the help they needed to get out of their git messes.
Cheers, Katie
jj
BUT hopefully the author is reading this: PLEASE PLEASE remove the part about `sudo rm -r fucking-git-repo-dir` or at least if it's satire tell people not to really do this. It should be:
cd ..
tar -cvzf fucking-git-repo.tar.gz fucking-git-repo-dir
echo "Please for the love of god help me I've fucked up and <describe problem>" | mail -s "NEED HEPL! git disaster" git-expert@xyzcompany.com -A fucking-git-repo.tar.gz
git clone https://some.github.url/fucking-git-repo-dir.git fucking-git-repo-dir2
cd fucking-git-repo-dir2
As long as you don't delete or muck with the `.git/` folder or files that aren't not be checked in, you have pretty fair odds that the mess can be untangled by someone either more knowledgeable about git or less pissed off.In recent versions of git you can use git restore, which besides having a better name and not being overloaded with other checkout functionality, has a better interface IMO.
Hyperbolic.
Fixing mistakes is easy if you understand the underlying data structure. Once you can conceptual map the structure into the intended form, you figure out what operations (verbs) you need. Then it’s a matter of mapping the operations into concrete command lines.
And how many of them use word processors and/or spreadsheets and don't bother learning about the internal structures of file formats?
* https://en.wikipedia.org/wiki/Microsoft_Office_XML_formats
Have you ever examined the bitstream of gzip or the structure of tar, even if you downloaded source file in them? Do you know the structure of RPM and/or Deb packages (depending on your favourite distro)? Do you know the voltage pattern of the Ethernet signals that go down the cable (or waveform of the Wifi / LTE radio signal)?
There are only so many hours in the day, and not everyone wants to (or has the time) to go deep into every rabbit hole.
Just because a tool is intended for engineers doesn’t mean it isn’t “hard” if it requires way more learning than any other tool in that engineer’s tool chain. Git is hard, even if you happen to have mastered it by now.
This is the problem. A tool that hides its internal structure but requires you to rebuild it in your head is poorly designed, full stop. The reason git is difficult to deal with is that it is a low level abstraction over the underlying data structure, but simultaneously hides that complexity until suddenly you need to be aware of all of it.
Some of this I was able to figure out about thinking through the problem, considering alternatives and some had to be done through reading.
My approach to learning is not so much "bottom up" [e.g. I can't just read a book from chapter 1, or some website that claims to explain everything].
I always recommended reading chapters 1-3 and skimming chapter 7 to people who are just getting started with Git.
$ git-status
$ git-log --graph --oneline --all [--reflog]
$ git-branch -avv
$ git-config --listCue the old joke:
> git gets easier once you get the basic idea that branches are homeomorphic endofunctors mapping submanifolds of a Hilbert space.
Would you consider linking more information or adding an explanation of "a bad time"? I think it's really confusing for newcomers to understand the implications of "public commits", or even what "public" means.
So not only are they leaky abstractions, when they do hide abstractions they can conceal important information.
1. https://tbaggery.com/2008/04/19/a-note-about-git-commit-mess...
No, no and no. If you do know what you do, then you don’t. There are tons of explanation on git, just RTFM.
oh wait fuck that let’s not.
So it not being necessary is not evidence that part of a language shouldn't be used, or that it isn't easier to communicate with that part of language.
Sometimes curse words help express emotions.
Both are perfectly reasonable to feel uncomfortable around.
If someone where to become annoyed or freaked out because I used the word fuck, or shit in conversation (not in the context of insulting another person; that's a whole different discussion), I would find it very uncomfortable to be around them because I'd be second-guessing my vocabulary constantly. I can be eloquent if I want, but sometimes a "fuck" is justified.
I don't usually like to work with people that are too nice. Its a marker of dishonesty.
I feel a bit of the same thing and my idea is that it might be related to an uncomfortable feeling of not being sure about the nuance or value of a word. 'Shit' is a known word in terms of meaning but what value it carries in any given context is a bit fuzzy, it can be received very differently.
Your commit log won't be perfect, but also you won't waste your time fixing conflicts and other issues...