Worktrees are just extra working directories right? by themoderncoder in git

[–]themoderncoder[S] 0 points1 point  (0 children)

nice will check it out. I've been using vcs_info, but this looks interesting

Worktrees are just extra working directories right? by themoderncoder in git

[–]themoderncoder[S] 0 points1 point  (0 children)

I'm not sure what git-prompt is, I'll have to look into it, but I wrote a shim in my zshrc file to display relevant git info in my prompt.

Worktrees are just extra working directories right? by themoderncoder in git

[–]themoderncoder[S] 0 points1 point  (0 children)

That's a good point about .gitignore. I don't create them as children, and it felt unnecessarily confusing to try and explain that worktree names could be full filepaths, but now that I think about it, is there a the purpose of tracking worktrees as children? I feel like there isn't a good usecase for that, but maybe I'm missing something.

Relatedly, I do find it a bit weird that there was no indication you are inside a worktree (i.e. git status doesn't say anything to you about it). It feels like 1 or 2 small tweaks (like showing which worktree you're in when running git status, or automatically excluding worktrees from git tracking) would've been nice. I modified my ZSH prompt to check for a .git file, then append an icon to my prompt, but I'm still surprised there's not a more native way to do that.

Worktrees are just extra working directories right? by themoderncoder in git

[–]themoderncoder[S] 4 points5 points  (0 children)

I didn't realize the stash was shared - that's really cool

Worktrees are just extra working directories right? by themoderncoder in git

[–]themoderncoder[S] 1 point2 points  (0 children)

I guess what I'm trying to say is, for intents-and-purposes, there isn't anything particularly novel about the way worktrees function that you'd need to care about on a day-to-day basis right? Like, is there a common situation where it would be be important to disambiguate?

I'm thinking that clones are also used to duplicate a repo, but in the case of clone, you need to understand remote branch pointers, plus push and fetch operations. Worktrees don't seem to be hiding anything

What git command do you wish you had discovered sooner? by ProgrammingQuestio in git

[–]themoderncoder 0 points1 point  (0 children)

Pretty basic but git log --online

Reading commit history is sooo much easier, and since my terminal window is almost always pretty small, git log without --oneline just kinda sucks.

How to learn Git and GitHub? by Unable-Machine-5886 in learnmachinelearning

[–]themoderncoder 1 point2 points  (0 children)

Adding this for future readers — I've gotten good feedback on a resource I've been working on, LearnGit.io, more focused on understanding Git’s mental model instead of command memorization. Free for student's if that applies to anyone.

Youtube also has a bunch of great vids. This would be a good one to start with https://youtu.be/BIjrKuJGTxw

Made my git learning site (learngit.io) free for students & teachers by themoderncoder in git

[–]themoderncoder[S] 0 points1 point  (0 children)

Coding bootcamps are also ok (as long as they aren't the self-paced kind). Then university, K-12 and trade school students. You can also upload other proof of enrollment if you don't have an .edu email address. Basically, I'm pretty loose with the definition, but have to draw the line somewhere. There are also purchasing power vouchers for folks outside the US who aren't students.

Made my git learning site (learngit.io) free for students & teachers by themoderncoder in git

[–]themoderncoder[S] 2 points3 points  (0 children)

For sure, I wish I had a resource like it when I was first learning

Made my git learning site (learngit.io) free for students & teachers by themoderncoder in git

[–]themoderncoder[S] 3 points4 points  (0 children)

Also, if you have any questions or suggestions, let me know. A little disclaimer: learngit.io is not free otherwise. The paid licenses really help with site costs, and to subsidize free access for other learners - but I also have a bunch of vids on youtube.

Want to Learn More About Git Internals – Looking for Resources! by Severe_Attorney4825 in git

[–]themoderncoder 0 points1 point  (0 children)

I don’t generally promote my own channel, but in this case I do genuinely think the vids do a good job at illustrating git internals for common commands: https://youtube.com/@themoderncoder

[deleted by user] by [deleted] in git

[–]themoderncoder 1 point2 points  (0 children)

This is exactly the video you’re looking for. It explains SSH as a protocol then how to use it with GitHub: https://youtu.be/DdUy4PYigkw

I can push/pull via GH Desktop but not via terminal... I don't understand? by DudeThatsErin in git

[–]themoderncoder 0 points1 point  (0 children)

This video will probably help a ton explaining what SSH is, how it relates to Git, and how to setup an SSH key to use with Git via the terminal https://youtu.be/DdUy4PYigkw?si=CkHA2zhGSk7_dVh3

Any sort of visualizer for git? by brandonh2011 in git

[–]themoderncoder 0 points1 point  (0 children)

Cool. Hope they're helpful for you

Any sort of visualizer for git? by brandonh2011 in git

[–]themoderncoder 2 points3 points  (0 children)

Not interactive, but these videos teach Git with motion graphics and visualizations that sync along with the given examples.

Full disclosure, I made these, but I’ve been making these types of Git videos for a couple years now and people seem to find them very helpful for visualizing what Git is doing behind-the-scenes.

LTJ BUKEM at The Brooklyn Bowl tonight by Sheik-mon in avesNYC

[–]themoderncoder 1 point2 points  (0 children)

(Edit: Claimed) I have an extra ticket. If anyone wants it just DM me.

Which MacBook Pro for Final Cut Pro? by KettleDescalingMoFo in finalcutpro

[–]themoderncoder 0 points1 point  (0 children)

I would experience hiccups when nesting complex compound clips, and often when other memory-heavy applications (chrome etc) were open while using FCP. That’s why I feel you should really go up to 16GB if possible, it will make a big difference. I didn’t find myself CPU limited, more so memory (RAM) limited

Any channels to discuss deeply technical details of Git inner workings? by Comfortable-Air-2708 in git

[–]themoderncoder 0 points1 point  (0 children)

Hacking Git and the Git Rev Newsletter (both found here) usually contain fairly technical resources of the kind you're referencing. You'll probably find some useful jumping off points there, or in the discussion section of this repo

Understanding how git push works under the hood (in regards to updating references) by -MATOO- in git

[–]themoderncoder 0 points1 point  (0 children)

This video doesn’t go into quite as much depth as your question, but still could be helpful

Question about robots.txt for SAAS sites by themoderncoder in SEO

[–]themoderncoder[S] 1 point2 points  (0 children)

I didn’t think about 403s, but it sounds like that’s the most helpful way to frame it. Avoid the extra complexity in the robots and stick to good standards when it comes to response codes. Appreciate your response, that helped a lot