{"id":15662949,"url":"https://github.com/snugug/gulp-subtree","last_synced_at":"2025-05-05T23:44:49.783Z","repository":{"id":16028262,"uuid":"18771996","full_name":"Snugug/gulp-subtree","owner":"Snugug","description":"A Gulp module to push a given folder to a subtree","archived":false,"fork":false,"pushed_at":"2015-05-07T11:18:39.000Z","size":287,"stargazers_count":18,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T10:38:07.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"TearfulGrass/ImageOptim","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Snugug.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}},"created_at":"2014-04-14T18:41:44.000Z","updated_at":"2016-08-17T11:17:26.000Z","dependencies_parsed_at":"2022-08-30T14:41:22.037Z","dependency_job_id":null,"html_url":"https://github.com/Snugug/gulp-subtree","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snugug%2Fgulp-subtree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snugug%2Fgulp-subtree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snugug%2Fgulp-subtree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snugug%2Fgulp-subtree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Snugug","download_url":"https://codeload.github.com/Snugug/gulp-subtree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252596325,"owners_count":21773842,"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-03T13:35:00.825Z","updated_at":"2025-05-05T23:44:49.763Z","avatar_url":"https://github.com/Snugug.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Gulp Subtree\n============\n\nA little gulp module to let you push a folder to a git subtree without keeping that folder in your git history. Highly recommend to use with [gulp-clean](https://www.npmjs.org/package/gulp-clean).\n\n# IMPORTANT!\n\nIn order for Gulp Subtree to work correctly, the folder you are pushing **MUST NOT BE IGNORED THROUGH GIT**. Often, this is the `dist` folder. This is because Gulp Subtree needs to be able to temporarly add it to your Git repository in order to push it. For this reason, it's recommended to pair with [gulp-clean](https://www.npmjs.org/package/gulp-clean), allowing your distribution folder to be totally removed after it's been pushed.\n\n## Requirements\n\n`git subtree` must be previously installed. Older versions of `git` (e.g. Ubuntu 12.04's standard install version) are not bundled with it. The easiest way to check is to see if `git subtree` throws up or not. Gulp will fail silently if the command is not available. See [here](http://engineeredweb.com/blog/how-to-install-git-subtree/) for more info on how to install it.\n\n## Usage\n\n```js\nvar subtree = require('gulp-subtree');\nvar clean = require('gulp-clean');\n\ngulp.task('subtree', function () {\n  return gulp.src('dist')\n    .pipe(subtree())\n    .pipe(clean());\n});\n```\n\n## Options\n\nOptions can be passed into subtree to choose the remote, branch, and message to push with. By default, it's `origin`, `gh-pages`, and `'Distribution Commit'`.\n\n```js\nvar subtree = require('gulp-subtree');\nvar clean = require('gulp-clean');\n\ngulp.task('subtree', function () {\n  return gulp.src('dist')\n    .pipe(subtree({\n      remote: 'upstream',\n      branch: 'master',\n      message: 'Here We Go!'\n    }))\n    .pipe(clean());\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnugug%2Fgulp-subtree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnugug%2Fgulp-subtree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnugug%2Fgulp-subtree/lists"}