Best of Version ControlApril 2025

  1. 1
    Article
    Avatar of freecodecampfreeCodeCamp·1y

    How to Use Lazygit to Improve Your Git Workflow

    Lazygit is an open-source command-line UI tool that simplifies Git commands with a user-friendly interface and keyboard shortcuts. It allows users to manage Git operations like commit, push, pull, create, and delete branches efficiently. The post provides a tutorial on installing Lazygit on various operating systems, an overview of its UI and panels, essential shortcuts, and a guide to common Git operations using Lazygit.

  2. 2
    Article
    Avatar of rubylaRUBYLAND·1y

    Git Rebase Squash

    Squashing commits with Git can degrade the readability and searchability of your history, making tools like git bisect and git revert difficult to use. However, if commits are kept atomic, git rebase fixup becomes a superior and faster option. This post provides detailed instructions on how to squash commits properly, either via interactive rebase or using git commit --squash, ensuring a clean git history without losing valuable information.

  3. 3
    Article
    Avatar of andrewlock.NET Escapades·1y

    Verifying tricky git rebases with git range-diff

    The post explores the git range-diff feature, explaining its purpose, how it works as a diff-of-diffs, and the complexities of understanding its output format. It demonstrates the tool with a small project example, showing a branch rebase and merge conflict resolution. The author finds the output challenging to interpret, suggesting that practice may be needed to fully utilize git range-diff effectively.

  4. 4
    Video
    Avatar of continuousdeliveryContinuous Delivery·1y

    Standout BAD HABITS Even Senior Programmers Have

    Senior programmers can make significant errors despite their experience. These mistakes often stem from poor practices like inadequate version control, not backing up code, improper handling of production databases, and bad coding design. Learning from these mistakes, using tools like debuggers and profilers effectively, and having a thoughtful approach to development can differentiate good programmers from bad ones.

  5. 5
    Article
    Avatar of bartwullemsThe Art of Simplicity·1y

    Git cherry-picking

    Cherry-picking in Git allows you to select specific commits from one branch and apply them to another, offering flexibility in version control by choosing particular changes instead of merging entire branches. Key scenarios for using cherry-picking include backporting fixes, recovering lost work, selective feature adoption, and undoing changes. The basic command is simple, and Visual Studio's UI provides additional support for easily managing these operations.