{"id":15643556,"url":"https://github.com/koistya/git-push","last_synced_at":"2025-04-30T17:13:07.389Z","repository":{"id":30447663,"uuid":"34001214","full_name":"koistya/git-push","owner":"koistya","description":"Use git-push to deploy your website to Azure, Heroku, GitHub Pages or any another hosting provider supporting Git-based deployments.","archived":false,"fork":false,"pushed_at":"2019-11-07T07:58:01.000Z","size":393,"stargazers_count":30,"open_issues_count":5,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T17:12:49.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/koistya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-15T15:11:28.000Z","updated_at":"2019-03-30T00:57:56.000Z","dependencies_parsed_at":"2022-07-24T16:47:10.970Z","dependency_job_id":null,"html_url":"https://github.com/koistya/git-push","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/koistya%2Fgit-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koistya%2Fgit-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koistya%2Fgit-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koistya%2Fgit-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koistya","download_url":"https://codeload.github.com/koistya/git-push/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251748952,"owners_count":21637418,"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-03T12:00:33.187Z","updated_at":"2025-04-30T17:13:07.350Z","avatar_url":"https://github.com/koistya.png","language":"JavaScript","readme":"# git-push\n\n[![NPM version](http://img.shields.io/npm/v/git-push.svg?style=flat-square)](https://www.npmjs.com/package/git-push)\n[![NPM downloads](http://img.shields.io/npm/dm/git-push.svg?style=flat-square)](https://www.npmjs.com/package/git-push)\n[![Build Status](http://img.shields.io/travis/koistya/git-push/master.svg?style=flat-square)](https://travis-ci.org/koistya/git-push)\n[![Dependency Status](http://img.shields.io/david/koistya/git-push.svg?style=flat-square)](https://david-dm.org/koistya/git-push)\n[![Tips](http://img.shields.io/gratipay/koistya.svg?style=flat-square)](https://gratipay.com/koistya)\n[![Discussion](http://img.shields.io/badge/discussion-join!-blue.svg?style=flat-square)](https://github.com/koistya/git-push/issues/2)\n\n\u003e Use [git-push](https://github.com/koistya/git-push) to deploy your website to\n\u003e [Azure](http://azure.microsoft.com/services/app-service/web/), [Heroku](https://www.heroku.com/),\n\u003e [GitHub Pages](https://pages.github.com/) or any other hosting provider\n\u003e supporting Git-based deployments.\n\n## Install\n\n```sh\nnpm install git-push --save-dev\n```\n\n### Example 1\n\n```js\n// deploy.js\n\nvar push = require('git-push');\n\npush('./app', 'http://github.com/example/example.github.io', function() {\n  console.log('Done!');\n});\n```\n\n```sh\n$ node deploy.js\n```\n\n### Example 2\n\n```js\n// gulpfile.js\n\nvar gulp = require('gulp');\nvar del = require('del');\nvar push = require('git-push');\nvar argv = require('minimist')(process.argv.slice(2));\n\ngulp.task('clean', del.bind(null, ['build/*', '!build/.git'], {dot: true}));\n\ngulp.task('build', ['clean'], function() {\n  // TODO: Build website from source files into the `./build` folder\n});\n\ngulp.task('deploy', function(cb) {\n  var remote = argv.production ?\n    {name: 'production', url: 'http://github.com/user/example.com', branch: 'gh-pages'},\n    {name: 'test', url: 'http://github.com/user/test.example.com', branch: 'gh-pages'};\n  push('./build', remote, cb);\n});\n```\n\n```sh\n$ gulp build --release\n$ gulp deploy --production\n```\n\n## API\n\n##### push(sourceDir, remote, callback);\n\n## Reference\n\n - [Continuous deployment using Git in Azure App Service](http://azure.microsoft.com/documentation/articles/web-sites-publish-source-control/) by Windows Azure\n - [Kudu - the engine behind Git deployments in Azure Web Apps](https://github.com/projectkudu/kudu) by Windows Azure\n - [How To Set Up Automatic Deployment with Git with a VPS](https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps) by DigitalOcean\n - [Deploying with Git](https://devcenter.heroku.com/articles/git) by Heroku\n - [Git as a deployment tool](http://gitolite.com/deploy.html) by gitolite\n\n## License\n\nThe MIT License © Konstantin Tarkus ([@koistya](https://twitter.com/koistya))\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoistya%2Fgit-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoistya%2Fgit-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoistya%2Fgit-push/lists"}