![]() |
|
Git Commands You Need to Know ~~ Ohshitgit.com ~~ A lifesaver for Git users - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5) +---- Thread: Git Commands You Need to Know ~~ Ohshitgit.com ~~ A lifesaver for Git users (/showthread.php?tid=6263916) |
Git Commands You Need to Know ~~ Ohshitgit.com ~~ A lifesaver for Git users - Hackers - Feb 15, 2024 I am a huge fan of this comedic take on git commands that will save you if you are in a bind. ~~~ Oh shit, I did something terribly wrong, please tell me git has a magic time machine!?! Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation has this chicken and egg problem where you can't search for how to get yourself out of a mess, unless you already know the name of the thing you need to know about in order to fix your problem. This is one of their opening lines & it's very accurate. If you messed up, head to the site: NSFW: https://ohshitgit.com SFW: https://dangitgit.com *No I am not affiliated with this, it just has saved my ass numerous times when I forget a lifesaving command. I always share it with the devs. Here is an example of something that might be helpful, for undoing a commit you made but without losing those changes: Code # undo the last commit, but leave the changes availableAnd of course, if you really need a laugh & the nuclear option:
RE: Git Commands You Need to Know ~~ Ohshitgit.com ~~ A lifesaver for Git users - HALx86 - Feb 16, 2024 Haha good find! Good git refresher with an awesome sense of humor. RE: Git Commands You Need to Know ~~ Ohshitgit.com ~~ A lifesaver for Git users - based - Feb 16, 2024 Actually useful commands. Nice find. This reminds me of when you accidently push sensitive data to github, and have to revert🤯 RE: Git Commands You Need to Know ~~ Ohshitgit.com ~~ A lifesaver for Git users - Hackers - Feb 16, 2024 (Feb 16, 2024 12:06 AM)HALx86 Wrote: Haha good find! Good git refresher with an awesome sense of humor. Yeah found this a couple years ago almost, it's honestly a great one. (Feb 16, 2024 06:29 AM)based Wrote: Actually useful commands. Nice find. Haha yeah that's no good. .gitignore for the win ! ``` Also, if you need a SFW version to share, here you go - https://dangitgit.com/en RE: Git Commands You Need to Know ~~ Ohshitgit.com ~~ A lifesaver for Git users - based - Feb 16, 2024 (Feb 16, 2024 06:33 AM)nodes Wrote: Haha yeah that's no good. Lmfao yeah, I use https://www.toptal.com/developers/gitignore for generating gitignores. But sometimes if its late etc... you can forget. RE: Git Commands You Need to Know ~~ Ohshitgit.com ~~ A lifesaver for Git users - Dirty - Feb 21, 2024 At some point or an other you will need this link to save your life. I know I have plenty of times gotten into a very sticky situation with git. RE: Git Commands You Need to Know ~~ Ohshitgit.com ~~ A lifesaver for Git users - Hackers - Mar 22, 2024 (Feb 21, 2024 01:24 AM)Dirtybox Wrote: At some point or an other you will need this link to save your life. I know I have plenty of times gotten into a very sticky situation with git. heh, yep! I recommend this link to everyone, it's very useful for those moments. I don't have too many crises but from time to time I need some git refreshers |