{"id":14069359,"url":"https://github.com/MichaelAquilina/git-commands","last_synced_at":"2025-07-30T05:32:06.824Z","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":"2025-05-09T16:18:47.000Z","size":99,"stargazers_count":11,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-09T17:22:30.361Z","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":"2025-05-09T16:18:50.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,"purl":"pkg:github/MichaelAquilina/git-commands","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelAquilina%2Fgit-commands/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267815187,"owners_count":24148356,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-13T07:06:53.562Z","updated_at":"2025-07-30T05:32:06.525Z","avatar_url":"https://github.com/MichaelAquilina.png","language":"Shell","funding_links":[],"categories":["Shell"],"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\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\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 url path to use for pull requests\n\n``git config web.default.issues``: Default url path to use for issues\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\nInstallation\n````````````\n\nplace ``git-web`` into any directory which is in your ``$PATH``\n\nAlternatively, if you are using ``zplug`` on zsh then this can easily be done by adding\nthe following to ``~/.zshrc``:\n\n.. code:: shell\n\n    zplug \"MichaelAquilina/git-commands\", \\\n        as:command, \\\n        use:git-web\n\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\nInstallation\n````````````\n\nplace ``git-clean-branches`` into any directory which is in your ``$PATH``\n\nAlternatively, if you are using ``zplug`` on zsh then this can easily be done by adding\nthe following to ``~/.zshrc``:\n\n.. code:: shell\n\n    zplug \"MichaelAquilina/git-commands\", \\\n        as:command, \\\n        use:git-clean-branches\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"}