### Configure and use Diff So Fancy Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Enhances Git diff output with improved readability, syntax highlighting, and cleaner formatting. It requires the diff-so-fancy utility installed on the system. ```bash git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" git diff git config --global alias.dsf "diff --color" git dsf ``` -------------------------------- ### Hub - GitHub CLI Integration Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Hub wraps Git to add GitHub-specific commands for cloning, forking, creating pull requests, and managing issues directly from the command line. It requires the Hub tool to be installed. ```bash # Clone using shorthand GitHub notation $ git clone schacon/ticgit > git clone git://github.com/schacon/ticgit.git # Clone with SSH $ git clone -p schacon/ticgit > git clone git@github.com:schacon/ticgit.git # Add a remote by GitHub username only $ git remote add rtomayko > git remote add rtomayko git://github.com/rtomayko/CURRENT_REPO.git # Fork current repository $ git fork [ repo forked on GitHub ] > git remote add -f YOUR_USER git@github.com:YOUR_USER/CURRENT_REPO.git # Create a pull request $ git pull-request [ opens text editor to edit title & body for the request ] [ opened pull request on GitHub for "YOUR_USER:feature" ] # Checkout a pull request directly $ git checkout https://github.com/github/hub/pull/73 > git remote add -f --no-tags -t feature mislav git://github.com/mislav/hub.git > git checkout --track -B mislav-feature mislav/feature # Create a new GitHub repository $ git create [ repo created on GitHub ] > git remote add origin git@github.com:YOUR_USER/CURRENT_REPO.git # Open repository in browser $ git browse > open https://github.com/YOUR_USER/CURRENT_REPO ``` -------------------------------- ### Git Extras - Extended Git Commands Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Git Extras adds over 60 commands to Git for repository statistics, branch management, changelog generation, file manipulation, and more. It requires the git-extras tool to be installed. ```bash # Get repository summary statistics $ git summary project : git repo age : 10 years active : 11868 days commits : 40530 files : 2825 authors : 15401 Junio C Hamano 38.0% 1844 Jeff King 4.5% # Squash commits with a message $ git squash fixed-cursor-styling "Fixed cursor styling" $ git squash HEAD~3 # Create and track a new branch $ git create-branch development Total 3 (delta 0), reused 0 (delta 0) To https://github.com/tj/git-extras.git * [new branch] HEAD -> development Branch development set up to track remote branch development from origin. # Delete a branch locally and remotely $ git delete-branch integration Deleted branch integration (was bfb8522). Deleted remote-tracking branch remote/integration (was bfb8522). # Show contributor commits $ git contrib visionmedia visionmedia (18): Export STATUS_CODES Replaced several Array.prototype.slice.call() calls # Generate changelog from commits $ git changelog ## 3.9.0 - add babel support - add transpiler fallback support # Undo last commit keeping changes $ git undo Unstaged changes after reset: M package.json # Completely remove a file from git history $ git obliterate secrets.json # Checkout a pull request by number $ git pr 226 From https://github.com/tj/git-extras * [new ref] refs/pulls/226/head -> pr/226 Switched to branch 'pr/226' # Show effort statistics per file $ git effort file commits active days .gitignore.............................. 265 226 .mailmap................................ 47 40 ``` -------------------------------- ### GitFlow AVH Edition - Branching Model Workflow Source: https://context7.com/stevemao/awesome-git-addons/llms.txt GitFlow AVH Edition implements the GitFlow branching model with commands for managing feature branches, releases, and hotfixes. It requires the gitflow-avh package to be installed. ```bash # Initialize gitflow in a repository $ git flow init Which branch should be used for bringing forth production releases? - changelog - master Branch name for production releases: [master] # Start a new feature branch $ git flow feature start awesome-feature Switched to a new branch 'feature/awesome-feature' # Finish and merge a feature $ git flow feature finish awesome-feature Switched to branch 'develop' Merge made by the 'recursive' strategy. Deleted branch feature/awesome-feature # Publish feature to remote $ git flow feature publish awesome-feature # Start a release branch $ git flow release start 1.0.0 Switched to a new branch 'release/1.0.0' # Finish release (merges to main and develop, tags) $ git flow release finish 1.0.0 # Start an emergency hotfix $ git flow hotfix start critical-bug $ git flow hotfix finish critical-bug ``` -------------------------------- ### Format Git add-on submission in Markdown Source: https://github.com/stevemao/awesome-git-addons/blob/master/CONTRIBUTING.md This template defines the required structure for adding a new Git package to the repository. It includes sections for the package link, the specific command, and a brief explanation of the command's output. ```markdown ## [package](link) ### command ``` $ git command What happens ``` ``` -------------------------------- ### Open repository in browser with Git Open Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Opens the remote repository URL in the default web browser, supporting various hosting services like GitHub, GitLab, and Bitbucket. ```bash git open git open upstream git open upstream master ``` -------------------------------- ### Manage Git User Profiles Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Allows users to define, list, and switch between multiple Git identities for different project contexts. It simplifies the process of maintaining separate configurations for work and personal environments. ```bash git user add work "Dr. Henry Jekyll" henry@jekyll.com git user add home "Edward Hyde" hyde@night.com git user list git user set home ``` -------------------------------- ### Manage branches with Legit Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Simplifies common Git branch operations such as syncing, publishing, and switching branches with automatic stashing of local changes. ```bash git branches git sync git switch master git publish git unpublish master ``` -------------------------------- ### Fancy Git Diff Source: https://github.com/stevemao/awesome-git-addons/blob/master/README.md Improves the readability of git diff output by highlighting changes more clearly. It is a wrapper for standard diff commands. ```bash $ git dsf ``` -------------------------------- ### Git Town Workflow Automation Source: https://github.com/stevemao/awesome-git-addons/blob/master/README.md A suite of commands to automate common Git workflows like feature branching, syncing, and shipping code. It handles rebasing and merging automatically. ```bash $ git hack my-branch $ git sync $ git new-pull-request $ git ship ``` -------------------------------- ### Hyper Git Blame Source: https://github.com/stevemao/awesome-git-addons/blob/master/README.md An enhanced version of git-blame that provides detailed line-by-line attribution. It supports specific commit identifiers to trace code origins. ```bash $ git hyper-blame -i 3ddda43c ipsum.txt ``` -------------------------------- ### Manage Large Files with Git LFS Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Tracks, lists, and untracks large binary files to be managed by Git Large File Storage instead of the standard Git repository. ```bash git lfs track "*.mp3" git lfs track "*.zip" git lfs track git lfs untrack "*.zip" git lfs track ``` -------------------------------- ### Pull issues with Git Issue Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Fetches issues from a remote repository directly into the local environment. ```bash git issue pull ``` -------------------------------- ### Standardize commits with Commitizen Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Provides an interactive command-line interface to generate commit messages that adhere to conventional commit standards. ```bash git cz ``` -------------------------------- ### Emergency save with Git Fire Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Immediately creates a new branch and pushes all local changes to the remote repository, serving as an emergency backup tool. ```bash git fire ``` -------------------------------- ### Word-level Git Blame Source: https://github.com/stevemao/awesome-git-addons/blob/master/README.md Analyzes Git history at the word level rather than line level. It generates comprehensive statistics and HTML reports for authors and commits. ```bash $ git word-blame README.md ``` -------------------------------- ### Perform multi-repo operations with Git Plus Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Enables execution of commands across multiple repositories and provides utilities for comparing branch relationships and identifying stale branches. ```bash git multi git relation origin/4.0 git old-branches -d 10 git recent ``` -------------------------------- ### Track commits with Git Standup Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Displays recent commits filtered by author and timeframe, which is useful for daily standup meetings or progress reporting. ```bash git standup git recall -d 5 -a "Doge" git recall -d 5 -a "all" ``` -------------------------------- ### Check CI Status Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Checks the current continuous integration status of the repository. ```bash git ci-status ``` -------------------------------- ### Automate Git Workflows with Git Town Source: https://context7.com/stevemao/awesome-git-addons/llms.txt High-level commands to streamline branch management, synchronization, pull requests, and feature shipping. ```bash git hack my-branch git sync git new-pull-request git ship ``` -------------------------------- ### Encrypt Sensitive Files with Git Secret Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Encrypts and decrypts sensitive files using GPG keys to ensure secure storage of secrets within a repository. ```bash git secret init git secret tell my@email.com git secret add hideme.txt git secret list git secret hide git secret reveal ``` -------------------------------- ### Perform Incremental Merges with Git iMerge Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Facilitates incremental merges and rebases to resolve conflicts commit-by-commit. ```bash git imerge start --name=next --goal=merge --first-parent 4.0 git imerge merge 4.0 git add --all git commit git imerge continue git imerge diagram git imerge finish ``` -------------------------------- ### Manage Issues with Git Issue Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Provides distributed issue tracking directly within the Git repository, supporting offline access and synchronization. ```bash git issue init git issue new -s 'New issue entered from the command line' git issue new git issue list git issue comment e6a95c9 git issue tag e6a9 urgent gui crash git issue assign e6a9 joe@example.com git issue show -c e6a95c9 git issue push ``` -------------------------------- ### Emergency Git Fire Source: https://github.com/stevemao/awesome-git-addons/blob/master/README.md Quickly commits all changes to a new remote branch in an emergency situation. Useful for saving work before leaving a workstation. ```bash $ git fire ``` -------------------------------- ### Track Time from Commits Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Calculates total time spent on tasks by parsing /spend directives within commit messages. Supports filtering by author and date ranges. ```bash git spend sum git spend sum --author stevemao --author antoine@example.com --since tags/v1.0.0 ``` -------------------------------- ### Git Blame Impersonation Source: https://github.com/stevemao/awesome-git-addons/blob/master/README.md Changes the author of a specific commit to someone else. Primarily used for demonstration or testing purposes. ```bash $ git blame-someone-else 'Steve Mao ' 2efb4e3a061a2e8aaa58033e9c13c3e0e5fcde4b ``` -------------------------------- ### Compare Git Branch Status Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Displays the relationship between local branches and their upstream counterparts or the main branch. It helps identify how many commits a branch is ahead or behind. ```bash git branch-status ``` -------------------------------- ### Recursive Git Blame Source: https://github.com/stevemao/awesome-git-addons/blob/master/README.md Recursively inspects file history to find specific changes. It allows users to navigate through commit history for a given file path. ```bash $ git recursive-blame version package.json ``` -------------------------------- ### Identify Merge Commits Source: https://context7.com/stevemao/awesome-git-addons/llms.txt Determines which merge commit introduced a specific commit into a target branch. It is useful for auditing the history of code integration. ```bash git when-merged a2c9e695ecf3600f21fa731e705fd1a0503632d9 git when-merged HEAD ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.