{"id":16615714,"url":"https://github.com/michaelaquilina/git-commands","last_synced_at":"2026-03-07T16:02:59.072Z","repository":{"id":28679631,"uuid":"119049122","full_name":"MichaelAquilina/git-commands","owner":"MichaelAquilina","description":"Various helpful git commands for your git workflow","archived":false,"fork":false,"pushed_at":"2024-07-09T13:28:46.000Z","size":91,"stargazers_count":11,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T02:11:31.490Z","etag":null,"topics":["git","productivity"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MichaelAquilina.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-26T12:29:40.000Z","updated_at":"2024-07-28T22:47:56.000Z","dependencies_parsed_at":"2024-08-13T07:15:08.343Z","dependency_job_id":null,"html_url":"https://github.com/MichaelAquilina/git-commands","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelAquilina%2Fgit-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelAquilina%2Fgit-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelAquilina%2Fgit-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelAquilina%2Fgit-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichaelAquilina","download_url":"https://codeload.github.com/MichaelAquilina/git-commands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244815179,"owners_count":20514910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","productivity"],"created_at":"2024-10-12T02:10:25.997Z","updated_at":"2026-03-07T16:02:59.066Z","avatar_url":"https://github.com/MichaelAquilina.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"============\nGit Commands\n============\n\n\n|CircleCI| |GPLv3|\n\nHelper commands for git.\n\n* git-web_\n* git-clean-branches_\n* git-default-branch_\n* git-rollback_\n* git-commit-status_\n\nCopy any of these commands in to your \"$PATH\" to make them accessible as a git subcommand\n\ngit-web\n=======\n\nOpens the relevant web page for the git repository. By default this opens the repository for\nthe \"origin\" remote.\n\nOpen up a web page for the default origin remote:\n\n.. code:: shell\n\n    git web\n\nOpen up web page for other specified remote:\n\n.. code:: shell\n\n    git web upstream\n\nOpen up the issues page:\n\n.. code:: shell\n\n    git web --issues\n\nOpen up all open pull requests:\n\n.. code:: shell\n\n    git web --pulls\n\nOpen new pull request for current branch:\n\n.. code:: shell\n\n    git web --pull-request\n\nOpen commit history\n\n.. code:: shell\n\n   git web --commits\n\n\nConfigution\n```````````\n\n``git config web.opencommand``: Set the command to use when opening urls by setting\n\n``git config web.default.pulls``: Default fallback url path to use for pull requests\n\n``git config web.default.issues``: Default fallback url path to use for issues\n\n``git config web.default.commits``: Default fallback url path to use for commits\n\n``git config web.$DOMAIN.pulls``: Path to use for pull requests for ``$DOMAIN``\n\n``git config web.$DOMAIN.issues``: Path to use for issues for ``$DOMAIN``\n\n``git config web.$DOMAIN.commits``: Path to use for commit history for ``$DOMAIN``\n\ngit-clean-branches\n==================\n\nCleans (delete) any branches that have been been merged into master. This should make\nyour life easier when figuring out which local branches are no longer important.\n\nDelete all local branches that have been merged into master:\n\n.. code:: shell\n\n    git clean-branches\n\nForce delete any branches that might be in an inconistent state:\n\n.. code:: shell\n\n    git clean-branches -D\n\n\ngit-default-branch\n==================\n\nPrints out the default branch of the repository (typically main or master) by querying\nthe HEAD of the origin remote.\n\nThis is a useful command to have when used in combination with other functions and aliases\nyou might have.\n\nFor example, the alias below would fail on any repositories which do not use main as the\ndefault branch.\n\n.. code:: shell\n\n    alias grim=\"git rebase -i main\"\n\nHowever we can change this to use `git-default-branch` to make it work for any repository:\n\n.. code:: shell\n\n    alias grim=\"git rebase -i $$(git default-branch)\"\n\ngit-rollback\n============\n\nProvides a convenient interactive wrapper around `git reflog` to rollback (via `git reset`).\n\nAccepts and passes through any arguments to the resulting `git reset` command\n\n.. code:: shell\n\n    git rollback         # performs the default mixed reset on selected commit\n    git rollback --hard  # performs a hard reset on selected commit\n    git rollback -p      # performs an interactive patch reset on selected commit\n\n\ngit-commit-status\n=================\n\nPrints the associated commit statuses from your SCM provider for the \"origin\" remote.\n\nThe printed text is hyperlinked within the terminal to allow you to click through\nand see details.\n\nCurrently only supports github.\n\n.. code:: shell\n\n   git commit-status                  # prints latest branch status by default\n   git commit-status my-branch-name   # supports any ref\n\n\n.. |CircleCI| image:: https://circleci.com/gh/MichaelAquilina/git-commands.svg?style=svg\n   :target: https://circleci.com/gh/MichaelAquilina/git-commands\n\n.. |GPLv3|  image:: https://img.shields.io/badge/License-GPL%20v3-blue.svg\n   :target: https://www.gnu.org/licenses/gpl-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelaquilina%2Fgit-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelaquilina%2Fgit-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelaquilina%2Fgit-commands/lists"}