{"id":17109945,"url":"https://github.com/oe/sourcetree-custom-actions","last_synced_at":"2025-04-13T03:26:55.135Z","repository":{"id":151076460,"uuid":"261966215","full_name":"oe/sourcetree-custom-actions","owner":"oe","description":"useful sourcetree custom actions bash scripts ","archived":false,"fork":false,"pushed_at":"2024-08-23T16:30:29.000Z","size":7717,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T11:14:46.814Z","etag":null,"topics":["custom-actions","scripts","shell","sourcetree"],"latest_commit_sha":null,"homepage":null,"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/oe.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":"2020-05-07T06:17:32.000Z","updated_at":"2024-08-16T06:29:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d53ce7f-7fca-47c7-8334-45f6a495036d","html_url":"https://github.com/oe/sourcetree-custom-actions","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/oe%2Fsourcetree-custom-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fsourcetree-custom-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fsourcetree-custom-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fsourcetree-custom-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oe","download_url":"https://codeload.github.com/oe/sourcetree-custom-actions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248658950,"owners_count":21141041,"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":["custom-actions","scripts","shell","sourcetree"],"created_at":"2024-10-14T16:24:54.781Z","updated_at":"2025-04-13T03:26:55.101Z","avatar_url":"https://github.com/oe.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SourceTree custom actions\nUseful [SourceTree](https://www.sourcetreeapp.com/) custom actions bash scripts. It can enable you to:\n- Open current repo in Sublime Text\n- Open current repo in VS Code\n- Open Select commit in Browser(Support github/gitlab)\n- Copy current Repo Url to Clipboard\n- Open XCode project in XCode\n- Stash untracked files by running `git stash --include-untracked`, you should stage your changes before running this action.\n- Reset any local changes by running `git reset --hard HEAD`\n\nTested on Mac, but should work on Linux and Windows(Win10 with SubLinux) too(you may need to alter application path in the scripts)\n\n## how to install\n\n1. [download this repo](https://github.com/oe/sourcetree-custom-actions/archive/master.zip)\n2. unzip and copy `scripts` to some untouched folder, like SourceTree's application data directory `~/Library/Application Support/SourceTree/`\n3. open `SourceTree` Go to `Preferences -\u003e Custom Actions -\u003e Add` and fill custom action with parameters as shown in the figure(add a shortcut if you wish): ![SourceTree](./sourcetree.png)\n\n\n## Tips\nIf you are using Mac, when browser a repo with SourceTree, you may press \u003ckbd\u003e⌘\u003c/kbd\u003e + \u003ckbd\u003eshift\u003c/kbd\u003e + \u003ckbd\u003e/\u003c/kbd\u003e and type the menu item name then press \u003ckbd\u003eenter\u003c/kbd\u003e to call that menu\n\n\nYou may need to add execution permission via `chmod +x *.sh` when an error `permission denied` shown up.\n\n## Alfred Workflow\nIf you are using alfred on macOS, you may try [sourcetree-alfred-workflow](https://github.com/oe/sourcetree-alfred-workflow) also created by me\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foe%2Fsourcetree-custom-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foe%2Fsourcetree-custom-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foe%2Fsourcetree-custom-actions/lists"}