{"id":13738685,"url":"https://github.com/stas00/git-tools","last_synced_at":"2026-02-19T19:32:41.249Z","repository":{"id":138810744,"uuid":"166915027","full_name":"stas00/git-tools","owner":"stas00","description":"helper git tools","archived":false,"fork":false,"pushed_at":"2023-10-04T04:49:44.000Z","size":53,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T15:36:23.476Z","etag":null,"topics":["git","github"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stas00.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}},"created_at":"2019-01-22T02:42:01.000Z","updated_at":"2025-01-27T09:23:23.000Z","dependencies_parsed_at":"2024-10-24T00:14:07.890Z","dependency_job_id":"93bbff3d-0934-4151-84eb-86fd6a39427d","html_url":"https://github.com/stas00/git-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stas00/git-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stas00%2Fgit-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stas00%2Fgit-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stas00%2Fgit-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stas00%2Fgit-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stas00","download_url":"https://codeload.github.com/stas00/git-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stas00%2Fgit-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29628822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T18:02:07.722Z","status":"ssl_error","status_checked_at":"2026-02-19T18:01:46.144Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","github"],"created_at":"2024-08-03T03:02:33.096Z","updated_at":"2026-02-19T19:32:41.186Z","avatar_url":"https://github.com/stas00.png","language":"Shell","readme":"# git Tools\n\nVarious helper tools for working with git and github:\n\n- [git cheat-sheet](./git.txt) - various solutions to git usage\n- [how to make PR + tool to create PR branch](./how-to-make-pr/)\n- [create TOC in `.md` files](./github-markdown-toc/)\n- [rebase/merge a local branch with origin master](./git-rebase/)\n- [git targets for Makefiles](./make/)\n\nUseful aliases:\n\nShow a diff of all files modified in the current branch against HEAD:\n```\nalias brdiff=\"def_branch=\\$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'); git diff origin/\\$def_branch...\"\n```\n\nSame, but ignore white-space differences, adding `--ignore-space-at-eol` or `-w`:\n```\nalias brdiff-nows=\"def_branch=\\$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'); git diff -w origin/\\$def_branch...\"\n```\n\nList all the files that were added or modified in the current branch compared to HEAD:\n```\nalias brfiles=\"def_branch=\\$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'); git diff --name-only origin/\\$def_branch...\"\n```\n\nOnce we have the list, we can now automatically open an editor to load just added and modified files:\n```\nalias bremacs=\"def_branch=\\$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'); emacs \\$(git diff --name-only origin/\\$def_branch...) \u0026\"\n```\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstas00%2Fgit-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstas00%2Fgit-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstas00%2Fgit-tools/lists"}