Best of Git2024

  1. 1
    Article
    Avatar of devtoDEV·2y

    Good Commit ✔ VS. Bad Commit ❌: Best Practices for Git

    Good commits are crucial for maintaining a clean and understandable project history in Git. Characteristics of good commits include being atomic and focused, having descriptive messages, following conventional guidelines, being tested and verified, and being properly scoped. Conversely, bad commits are large and unfocused, have vague or misleading messages, combine unrelated changes, and contain incomplete or untested code. Best practices for good commits involve committing often but meaningfully, writing clear messages, using branches effectively, reviewing and squashing commits, and automating testing.

  2. 2
    Article
    Avatar of communityCommunity Picks·2y

    Git Commands for Software Engineers

    Git is a crucial tool for software engineers that supports efficient version control and collaboration. Mastering Git commands helps streamline development workflows. This guide covers important commands such as git config, git init, git commit, git push, git pull, git branch, git merge, and many others that are essential for managing codebases and coordinating with team members.

  3. 3
    Article
    Avatar of devtoDEV·2y

    Mastering Version Control with Git: Beyond the Basics

    This post delves into advanced strategies and workflows for mastering version control with Git. It covers branching strategies, best practices for working with feature branches, Git hooks for automation, and more.

  4. 4
    Article
    Avatar of devtoDEV·2y

    My VSCode Config

    A developer shares their VSCode configurations and extensions, including tips for better development experience.

  5. 5
    Article
    Avatar of devtoDEV·2y

    Mastering Git: 13 Advanced Techniques and Shortcuts for Efficiency

    Learn advanced techniques and shortcuts for Git to enhance your development workflow and productivity. Topics covered include combining add and commit, creating aliases for Git commands, amending commit messages, force pushing, reverting changes, using Codespaces, stashing changes, renaming the main branch, viewing pretty logs, debugging with bisect, automating commit consolidation with autosquash, leveraging hooks for custom scripts, and safely destroying things in Git history.

  6. 6
    Article
    Avatar of antonzAnton Zhiyanov·2y

    Git by example: interactive guide

    An interactive guide to Git operations, from basic to advanced. Covers creating a repo, working tree, staging area, repository, branching, merging, remote syncing, undoing changes, and more.

  7. 7
    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.

  8. 8
    Article
    Avatar of communityCommunity Picks·2y

    My Git Cheatsheet

    A comprehensive Git cheatsheet with explanations and examples of common commands and workflows. Includes information on branching, merging, undoing changes, and recovering lost commits.

  9. 9
    Article
    Avatar of devtoDEV·2y

    Boost Productivity & Quality: Essential VS Code Extensions

    Discover essential Visual Studio Code extensions that can boost productivity and code quality. From code formatting to error detection, these tools provide valuable features for frontend developers using JavaScript frameworks.

  10. 10
    Article
    Avatar of devtoDEV·2y

    How to get somebody fired using Git

    The post humorously describes a trainee developer named Billy who learns Git by doing everything wrong, including pushing code to someone else's branch using --force, performing a hard reset on the production branch, and exposing the project's secrets by modifying the .gitignore file. The author emphasizes the importance of setting permissions in repositories and highlights the purpose of version control systems like Git.

  11. 11
    Article
    Avatar of hnHacker News·2y

    Git Tips and Tricks

    This post discusses some interesting Git things that may be new to intermediate to advanced Git users, including advanced command line stuff and new features in Git.

  12. 12
    Article
    Avatar of engineerscodexEngineer’s Codex·2y

    Good programmers worry about data structures and their relationships

    Good programmers focus on designing robust data structures and understanding their relationships, as emphasized by Linus Torvalds, the creator of Git and Linux. This approach makes software more reliable, easy to maintain, and scalable. Complex systems benefit greatly from well-thought-out data models, which simplify application logic and reduce the need for complex code. Prioritizing data structure design saves time and effort in the long run.

  13. 13
    Article
    Avatar of gitmelivegitme·2y

    Learn Git with me is a free and open-source platform to learn Git and GitHub. It is designed to be simple and easy to understand for beginners.

    Learn Git with me is a free, open-source platform that provides a simple and easy way for beginners to understand Git and GitHub.

  14. 14
    Article
    Avatar of communityCommunity Picks·2y

    Advanced git commands every senior software developer needs to know

    Learn advanced git commands that can help you improve productivity and optimize your workflow. Topics include selective and shallow git clone, inspecting git history, comparing revisions, committing, rebasing, cherry-picking, merging, managing multiple remotes and branches, keeping repositories tidy, and enhancing the git experience with Liquip Prompt and fzf.

  15. 15
    Article
    Avatar of colkgirlCode Like A Girl·2y

    Mastering Git: Hidden Commands Every Developer Should Know

    Git offers several hidden commands beyond the commonly used ones. Commands like git stash, git reflog, git bisect, git cherry-pick, git reset --hard, git blame, git clean, and git shortlog can significantly enhance your version control skills. These commands help in temporary save uncommitted changes, recover lost commits, identify problematic commits, selectively apply commits, reset code to a specific commit, track changes to specific lines, clean up untracked files, and summarize contributions by author.

  16. 16
    Article
    Avatar of javarevisitedJavarevisited·2y

    How to use Git Stash like a professional

    Learn how to use git stash to manage your unfinished code when encountering urgent tasks or bugs. This guide covers the basics of the working directory, staging area, and local repository, detailing commands such as git stash save, git stash apply, and git stash pop to temporarily store and retrieve code changes efficiently.

  17. 17
    Video
    Avatar of codinginpublicCoding in Public·2y

    My new favorite way to use git

    Git is a powerful tool with a steep learning curve, especially when using the command line interface. Lazy Git offers a graphical interface within the CLI, making it easier to manage Git tasks without memorizing commands. The post discusses the installation on Mac OS via Homebrew and showcases basic functionalities like staging, committing, and stashing changes. It emphasizes the speed and efficiency Lazy Git brings to the table for developers.

  18. 18
    Article
    Avatar of devtoDEV·2y

    Writing a good Pull Request (with template)

    A template for pull requests is introduced to improve codebase and the process of reviewing changes. The template includes sections for providing context, describing the task, discussing changes in the codebase and external services, and providing additional information.

  19. 19
    Article
    Avatar of communityCommunity Picks·2y

    The guide to Git I never had.

    Learn the foundational concepts of Git, set up credentials, and explore popular Git workflows. Mastering Git is essential for developers.

  20. 20
    Article
    Avatar of communityCommunity Picks·2y

    A complete guide to open source - 100x simpler

    The post provides a comprehensive guide to getting started with open source, covering essential concepts, benefits, and various roles in open-source projects. It offers practical advice on contributing, including for non-coders, details pre-requisites like Git, GitHub, and Markdown, and explains conventions like conventional commits. Additionally, it underscores the importance of guidelines, legal aspects, and ways to effectively find and contribute to good projects.

  21. 21
    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.

  22. 22
    Article
    Avatar of communityCommunity Picks·2y

    How to remove a leaked .env file from GitHub permanently...

    Learn how to remove a leaked .env file from your GitHub repository by removing it from the repository, deleting it from history using filter-branch, force pushing the changes, cleaning up the local repository, and revoking any leaked credentials.

  23. 23
    Article
    Avatar of devtoDEV·2y

    Git Branch Naming Strategies

    Learn about the different types of branches in Git and get tips for effectively naming them.

  24. 24
    Article
    Avatar of towardsdevTowards Dev·2y

    GIT for absolute beginners

    Understanding Git is essential for efficiently managing complex projects and collaborating with other developers. Git is a free and open-source distributed version control system for tracking changes in source code over time during the various phases of software development. It coordinates work among programmers who work collaboratively during software development. Git tracks every change made to a file, keeps project history organized, and makes collaboration easier irrespective of the developers' location.

  25. 25
    Article
    Avatar of communityCommunity Picks·2y

    Boost Productivity with Git Worktrees

    Git worktrees allow you to manage multiple working trees attached to the same repository, enabling you to have multiple commits checked out simultaneously. This tool is especially useful when working on different branches or pivoting between tasks without re-installing dependencies. Worktrees maintain their own state, including dependencies and editor states. For better workflow, tools like 'better-commits' can optimize common operations, ensuring dependencies are installed and branches are created efficiently.