{"id":15357188,"url":"https://github.com/gera2ld/git-ass","last_synced_at":"2025-04-15T06:42:39.894Z","repository":{"id":77381389,"uuid":"194010468","full_name":"gera2ld/git-ass","owner":"gera2ld","description":"A custom command for git to support branch alias and association.","archived":false,"fork":false,"pushed_at":"2024-10-25T10:35:25.000Z","size":32,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T06:42:33.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gera2ld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-27T02:41:46.000Z","updated_at":"2025-03-12T04:53:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"71e8f86d-f96a-4237-992b-6f911a852fa9","html_url":"https://github.com/gera2ld/git-ass","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":"0.17647058823529416","last_synced_commit":"baf1ccf87fce35e1862743e7ae670b0501b7f117"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fgit-ass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fgit-ass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fgit-ass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fgit-ass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gera2ld","download_url":"https://codeload.github.com/gera2ld/git-ass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249023727,"owners_count":21199958,"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":[],"created_at":"2024-10-01T12:33:47.352Z","updated_at":"2025-04-15T06:42:39.876Z","avatar_url":"https://github.com/gera2ld.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-ass\n\nA custom command for git to support branch alias and association.\n\n- The main script is written in pure Python 3 and has no third party dependencies.\n- The autocomplete script works for Zsh.\n\n## Installation\n\n1. Clone the project\n\n   ```sh\n   $ git clone https://github.com/gera2ld/git-ass.git\n   ```\n\n1. Add executable path\n\n   ```sh\n   export PATH=$PATH:/path/to/git-ass/bin\n   ```\n\n1. Enable autocompletion for Zsh\n\n   ```sh\n   # ~/.zshrc\n\n   source path/to/git-ass/scripts/init.zsh\n   ```\n\n## Usage\n\nAbbreviation is recommended:\n\n```sh\nalias a='git ass'\n```\n\n- Set base\n\n  E.g. add current branch as a development branch, and expect it to be merged into the release branch `release-1.0`.\n\n  ```sh\n  $ git ass add -B release-1.0\n  ```\n\n- Alias and description\n\n  E.g. add alias `awesome` and a description to current branch.\n\n  ```sh\n  $ git ass add -a awesome -d 'This is an awesome branch'\n  ```\n\n- Show information of current branch\n\n  ```sh\n  # Show all ancestors\n  $ git ass info\n\n  # Show specified property of current branch\n  $ git ass info -p alias\n  ```\n\n- List recorded branches\n\n  ```sh\n  $ git ass list\n  ```\n\n- Check out branch by alias\n\n  ```sh\n  # Check out `awesome`\n  $ git ass checkout awesome\n  # or\n  $ a co awesome\n  ```\n\n- Rebase\n\n  E.g. the current branch is a development branch and based on the release branch `release-1.0` as described above,\n  then the following command will rebase the current branch on top of the release branch.\n\n  ```sh\n  $ git ass rebase\n  ```\n\n- Find a branch by alias\n\n  ```sh\n  $ git ass find awesome\n  # or\n  $ a f awesome\n  ```\n\n- Use with git\n\n  ```sh\n  $ git checkout `git ass find awesome`\n  # or\n  $ gco `a f awesome`\n  ```\n\n- Purge locally merged branches\n\n  ```sh\n  $ git ass purge\n  ```\n\n- Prune inexistent branches\n\n  ```sh\n  $ git ass prune\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Fgit-ass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgera2ld%2Fgit-ass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Fgit-ass/lists"}