{"id":31631346,"url":"https://github.com/jbmorley/git-tools","last_synced_at":"2026-05-14T12:34:09.169Z","repository":{"id":150317244,"uuid":"583909128","full_name":"jbmorley/git-tools","owner":"jbmorley","description":"Git Aliases and Commands","archived":false,"fork":false,"pushed_at":"2026-03-28T18:26:41.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-28T20:15:54.048Z","etag":null,"topics":["git"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbmorley.png","metadata":{"files":{"readme":"README.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-31T12:16:53.000Z","updated_at":"2026-03-28T18:26:44.000Z","dependencies_parsed_at":"2024-11-26T03:22:08.183Z","dependency_job_id":"2528d767-f64e-49d6-ab6f-ef1700b51611","html_url":"https://github.com/jbmorley/git-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jbmorley/git-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbmorley%2Fgit-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbmorley%2Fgit-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbmorley%2Fgit-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbmorley%2Fgit-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbmorley","download_url":"https://codeload.github.com/jbmorley/git-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbmorley%2Fgit-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33025113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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"],"created_at":"2025-10-06T22:44:20.426Z","updated_at":"2026-05-14T12:34:09.164Z","avatar_url":"https://github.com/jbmorley.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Tools\n\nGit aliases and commands\n\n## Overview\n\nGit Tools is a collection of Git aliases and convenience commands that I use in my development workflow. I've packed them up to make them easy to share and keep up-to-date across my various development environments. You're welcome to use them and I'd love contributions.\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   mkdir -p ~/Projects\n   cd ~/Projects\n   git clone git@github.com:jbmorley/git-tools.git\n   ```\n\n2. Update the submodules:\n\n   ```\n   git submodule update --init\n   ```\n\n3. Include the Git Tools configuration file in your local Git configuration. For example, if you've cloned this repository to `~/Projects/git-tools`, then you would add the following section to yout `~/.gitconfig`:\n\n   ```\n   [include]\n\n       path = ~/Projects/git-tools/config\n   ```\n\n### Updates\n\n```bash\ngit gt-update\n```\n\n## Commands\n\nGit Tools adds the following additional git commands, many of which are simply shorter forms to avoid the need to type too much:\n\n- `br` – alias for `branch`\n  ```bash\n  git branch\n  ```\n- `ci` – alias for `commit`\n  ```bash\n  git commit\n  ```\n- `co` – alias for `checkout`\n  ```bash\n  git checkout\n  ```\n- `d` – alias for `diff`\n  ```bash\n  git diff\n  ```\n- `dc` – show the cached changes\n  ```bash\n  git diff --cached\n  ```\n- `del` – interactive delete branch\n- `dt` – alias for `difftool`\n  ```bash\n  git difftool\n  ```\n- `gt-install` – install Git Tools dependencies\n- `gt-install-directory` – echo Git Tools install directory\n- `gt-update` – update Git Tools installation\n- `list-aliases` – list all aliases\n  ```bash\n  git config --get-regexp ^alias\n  ```\n- `o` - open\n- `open` - open the repository in a web browser\n- `p` – push\n  ```bash\n  git push\n  ```\n- `pf` – force push with lease\n  ```bash\n  git push --force-with-lease\n  ```\n- `pr` – create a new PR on GitHub (requires the [GitHub CLI](https://cli.github.com) to be installed)\n  ```bash\n  gh pr create -w\n  ```\n- `pulls` - open the repository pull requests in a web browser\n- `s` – alias for `status`\n  ```bash\n  git status\n  ```\n- `sha` – alias for `rev-parse HEAD`\n  ```bash\n  git rev-parse HEAD\n  ```\n- `sl`\n- `sla`\n- `st` – alias for `status`\n  ```bash\n  git status\n  ```\n- `unstage` – unstage the current changes\n  ```bash\n  git reset HEAD --\n  ```\n- `up` – fetch and rebase onto `origin/main`\n   ```bash\n   git fetch origin -p\n   git rebase origin/main --autostash\n   git submodule update --init --recursive\n   ```\n- `xbranch \u003cnew branch\u003e` or `xb \u003cnew branch\u003e` – move the current uncommitted changes to a new branch by stashing, checking out main, updating main, and checking out the new branch, and applying the stashed changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbmorley%2Fgit-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbmorley%2Fgit-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbmorley%2Fgit-tools/lists"}