Best of GitOctober 2024

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    How to See Beautiful Git Project Stats in Your Terminal

    Onefetch is a tool that provides beautiful code stats for git projects directly in your terminal, showcasing ASCII art, language breakdown, contributor info, and more. It is available for Linux, macOS, and Windows and offers various customization options like hiding ASCII art and changing output fields.

  2. 2
    Article
    Avatar of techworld-with-milanTech World With Milan·2y

    Git Branching Strategies

    Choosing the right Git branching strategy is vital for efficient team collaboration, code integration, and software deployment. This guide explores popular strategies such as Feature Branching, GitFlow, GitHub Flow, GitLab Flow, and Trunk-Based Development, and delves into advanced concepts like Stacked Diffs and Git Merge versus Rebase. Each strategy is detailed with steps on implementation, benefits, and optimal use cases. Additionally, the post highlights factors to consider when selecting a strategy and emphasizes the importance of proper automated testing and team agreements.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    20 Git Command-Line Tricks Every Developer Should Know

    Mastering the Git command line provides deeper control, flexibility, and speed for developers. This post highlights 20 Git command-line tricks, from setting global configuration and undoing the last commit, to using rebase for a clean commit history and blaming a line of code. These tips can streamline your workflow, whether working solo or in a team.

  4. 4
    Video
    Avatar of javascriptmasteryJavaScript Mastery·2y

    Git & GitHub Tutorial | Visualized Git Course for Beginner & Professional Developers in 2024

    Learn the essentials and advanced features of Git and GitHub in a comprehensive tutorial aimed at both beginner and professional developers. This crash course covers everything from basic Git commands and version control concepts to advanced topics like resolving merge conflicts, using Git through a GUI, and professionally managing code changes and collaboration within a team. By the end of this guide, developers will be equipped to handle real-life production issues and utilize Git and GitHub to their full potential.

  5. 5
    Article
    Avatar of bytebytegoByteByteGo·2y

    How TikTok Manages A 200K File MonoRepo with Sparo

    TikTok's frontend team manages a massive monorepo containing over 200,000 files and 1,000 projects using an in-house tool called Sparo. Sparo improves Git operations' performance by leveraging sparse checkout and partial clone features. The tool introduces checkout profiles for easier setup and mirrors the standard Git CLI for seamless adoption. These enhancements led to significant time savings in cloning, checking out branches, running status checks, and committing code, greatly boosting developer productivity.

  6. 6
    Article
    Avatar of PrismicPrismic·2y

    Git Cheat Sheet: 20+ Top Git Commands

    Git is a fundamental version control system in the development industry, widely used for managing and collaborating on code. This post highlights over twenty essential Git commands that developers need to know, categorized into sections like managing repositories, collaborating, temporary commits, rewriting history, and logging. It also mentions helpful Git tools to simplify usage. For those looking to expand their Git knowledge, resources like official Git documentation or cloud-based hosting platforms are recommended.

  7. 7
    Article
    Avatar of opensoulsOpenSouls·2y

    A complete guide to open source - 100x simpler

    This guide provides a comprehensive introduction to open source, including key concepts, roles, and the contribution process. It covers topics such as prerequisites (Git, GitHub, Markdown), conventional commits, and how to find and contribute to open source projects. Additional resources and legal aspects are also discussed, making it a valuable starting point for new contributors.

  8. 8
    Article
    Avatar of rubyflowRuby Flow·2y

    kwatch/git-improved: Much better command interface for Git

    GitImproved is a wrapper script for the Git command, offering an intuitive and easy-to-understand interface with categorized commands. It simplifies common Git tasks with shorter, more memorable commands. GitImproved is built using the Benry-CmdApp framework and requires Ruby >= 2.3. Installation involves a simple gem command.

  9. 9
    Article
    Avatar of webdevbeehiivWeb Developer·2y

    Ditch Git Checkout: Use Git Switch and Git Restore Instead

    Git 2.23 introduced `git switch` and `git restore` to replace `git checkout` for improved clarity and functionality. `git switch` handles branch switching, while `git restore` is used to restore working tree files, aligning with the UNIX philosophy of performing a single function well. These commands offer more explicit semantics, making them easier to understand and less confusing than the all-encompassing `git checkout`.

  10. 10
    Article
    Avatar of communityCommunity Picks·2y

    🎯 The Art of Writing Awesome Commit Messages: Why It Matters and How to Nail It

    Effective commit messages are crucial for maintaining a clear and manageable git history. They help in debugging, refactoring, and collaboration. Good commit messages need to be clear, concise, and informative, often starting with an action verb and kept under 50 characters. Occasionally, additional descriptions can provide more context. Emojis can add clarity and fun but should be used in moderation.

  11. 11
    Article
    Avatar of webtoolsweeklyWeb Tools Weekly·2y

    CSS Tools, Git/CLI, Vue Tools

    Discover a variety of new tools and plugins for CSS, HTML, Git, GitHub, CLI, and Vue. Highlights include Tailwind Sync, CSS Spring Easing Generator, Orwell for GitHub workload monitoring, and vue-i18n for internationalization. The post also introduces several useful packages like gradient-string for colorful terminal outputs and Vue Data UI for eloquent data visualizations.

  12. 12
    Article
    Avatar of hnHacker News·2y

    How we shrunk our Javascript monorepo git size by 94%

    Microsoft's large Javascript monorepo, known as 1JS, had grown to an unmanageable 178GB. By using tools like git-sizer and addressing issues such as binary blobs and large folder trees, they managed to make significant progress. They further reduced the repo size by implementing a new git packing algorithm, which considers path rather than just the last 16 characters of filenames. This change reduced the repository size to 5GB and will be integrated into future git versions, benefiting developers globally.