Git from the Bottom Up – The Index episode artwork

EPISODE · Sep 26, 2022 · 1H 11M

Git from the Bottom Up – The Index

from Coding Blocks · host Allen Underwood, Michael Outlaw, Joe Zack

This episode, we learn more about Git's Index and compare it to other version control systems while Joe is throwing shade, Michael learns a new command, and Allen makes it gross. The full show notes for this episode are available at https://www.codingblocks.net/episode194. News Want to help out the show? Leave us a review! Ludum Dare is a bi-annual game jam that's been running for over 20 years now. Jam #51 is coming up September 30th to October 3rd. (ldjam.com) We previously talked about Ludum Dare in episode 146. The Index Meet the Middle Man The index refers to the set of blobs and trees created when running a git add, when you "stage" files. These trees and blobs are not a part of the repository yet! If you were to unstage the changes using a reset, you'd have an orphaned blob(s) that would eventually get cleaned up. The index is a staging area for your next commit. The staging area allows you to build up your next commit in stages. You can almost ignore the index by doing a git commit -a (but shouldn't). In Subversion, the next set of changes is always determined by looking at the differences in the current working tree. In Git, the next set of changes is determined by looking at your index and comparing that to the latest HEAD. git add allows you to make additional changes before executing your commit with things like git add --patch and git add --interactive parameters. For Emacs fans out there, the author mentioned gitsum. (GitHub) Taking the Index Further The author mentions "Quilt!", is it this? (man7.org) The primary difference between Git and Quilt is Git only allows one patch to be constructed at a time. Situation the author describes is: What if I had multiple changes I wanted to test independently with each other? There isn't anything built into Git to allow you to try out parallel sets of changes on the fly. Multiple branches would allow you to try out different combinations and the index allows you to stage your changes in a series of commits, but you can't do both at the same time. To do this you'd need an index that allows for more than a single commit at a time. Stacked Git is a tool that lets you prepare more than one index at a time. (stacked-git.github.io) The author gives an example of using regular Git to do two commits by interactively selecting a patch. Then, the author gives the example of how you'd have to go about disabling one set of changes to test the other set of changes. It's not great … swapping between branches, cherry-picking changes, etc. If you find yourself in this situation, definitely take a look at Stacked Git. Using Stacked Git, you are basically pushing and popping commits on a stack. Resources we Like Git from the Bottom Up by John Wiegley (jwiegley.github.io) The Index: Meet the middle man (jwiegley.github.io) Taking the Index Further (jwiegley.github.io) git add –patch and –interactive by Markus Wein (nuclearsquid.com) We previously discussed the --patch option in episode 22. gitsum Emacs Plugin (GitHub) Darcs is a free, open-source, cross platform version control system with a focus on changes rather than snapshots. (darcs.net) Stacked Git (stacked-git.github.io) Tip of the Week Diffusion Bee is GUI for running Stable Diffusion on M1 macs. It's got a one-click installer that you can get up and generating weird computer art in minutes … as long as you're on a recent version of macOS and M1 hardware. (GitHub) No M1 Mac? You can install the various packages you need to do it yourself, some assembly required! (assembly.ai) Git Tower is a fresh take on Git UI that lets you drag-n-drop branches, undo changes, and manage conflicts. Give it a shot! (git-tower.com) Git Kraken is the Gold Standard when it comes to Git UIs. It's a rich, fully featured environment for managing all of your branches and changes. They are also the people behind the popular VS Code Extension GitLens (gitkraken.com) GitHub CLI is an easy to use command line interface for interacting with GitHub. Reason 532 to love it … draft PR creation via gh pr create --draft ! (cli.github.com)

Episode metadata supplied by the publisher feed · Published Sep 26, 2022

NOW PLAYING

Git from the Bottom Up – The Index

0:00 1:11:56

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

API Intersection Stoplight Building a successful API requires more than just coding. It starts with collaborative design, focuses on creating a great developer experience, and ends with getting your company on board, maintaining consistency, and maximizing your API’s profitability.In the API Intersection, you’ll learn from experienced API practitioners who transformed their organizations, and get tangible advice to build quality APIs with collaborative API-first design.Jason Harmon brings over a decade of industry-recognized REST API experience to discuss topics around API design, governance, identity/auth versioning, and more.They’ll answer listener questions, and discuss best practices on API design (definition, modeling, grammar), Governance (multi-team design, reviewing new API’s), Platform Transformation (culture, internal education, versioning) and more.They’ll also chat with experienced API practitioners from a wide array of industries to draw out practical takeaways and insights you can use.H Unshamed & Unchained: Carving Space For Self-Healing & Habit Transformation Danny Poelman Welcome to "Unshamed & Unchained: Carving Space For Self-Healing & Habit Transformation", the podcast where we break the chains of shame and societal expectations to create a safe space for self-healing, habit transformation, and personal growth. Hosted by a seasoned life coach, Danny Poelman DDS, with years of hands-on experience, this podcast is your guide to reclaiming your voice, embracing your story, and living life on your terms.In each episode, we dive deep into the topics that matter most to you—whether it's:-breaking free from unwanted habits like pornography-excessive people-pleasing-healing from past trauma-recovering from narcissistic abuse or religious/relational trauma-anxiety/depression-money mindset blocks-overcoming limiting beliefsWe’re not afraid to talk about the things that are often considered taboo, because we believe that through honest, unfiltered conversations, real transformation happens.You’ll hear real Khanyisa Keke TV Khanyisa Keke On Khanyisa Keke TV, developers can learn and improve their Android for Kotlin Development skills. On this podcast, programmers can learn Android for Kotlin coding from scratch, improve their existing programming skills, get tips, be kept up to date with all the latest happenings and get access to free resources. Powered by Firstory Hosting The Triathlon Mental Performance Podcast Neil Edge This podcast is for you if you are a Triathlete that is interested in learning about tools and strategies to overcome challenges and to utilize the power of your mind to race faster.I'm an experienced Triathlon Mental Performance Coach working with both Age Groupers and Pros.Episodes will cover the following and more.How to improve your mental toughnessRemoving the possibility of panic attacks in open water Removing the fear of fast descents on your bike -Removing mental blocks to improve your race times Completely remove performance anxiety (you don't have to just cope with it)4 weeks to race day - Strategies to  arrive at your a-race feeling calm and confident, with race day mental strategiesI will also talk about specific tools that you can use to ensure that you race faster.<b

Frequently Asked Questions

How long is this episode of Coding Blocks?

This episode is 1 hour and 11 minutes long.

When was this Coding Blocks episode published?

This episode was published on September 26, 2022.

What is this episode about?

This episode, we learn more about Git's Index and compare it to other version control systems while Joe is throwing shade, Michael learns a new command, and Allen makes it gross. The full show notes for this episode are available...

Can I download this Coding Blocks episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!