Title: "ng github-pages:deploy" is fail on 1.0.0-beta.22-1 · Issue #3507 · angular/angular-cli · GitHub
Open Graph Title: "ng github-pages:deploy" is fail on 1.0.0-beta.22-1 · Issue #3507 · angular/angular-cli
X Title: "ng github-pages:deploy" is fail on 1.0.0-beta.22-1 · Issue #3507 · angular/angular-cli
Description: Error message. Command failed: git clean -f -d warning: failed to remove src/lib There was a permissions error during git file operations, please close any open project files/folders and try again. You might also need to return to the ma...
Open Graph Description: Error message. Command failed: git clean -f -d warning: failed to remove src/lib There was a permissions error during git file operations, please close any open project files/folders and try again....
X Description: Error message. Command failed: git clean -f -d warning: failed to remove src/lib There was a permissions error during git file operations, please close any open project files/folders and try again....
Opengraph URL: https://github.com/angular/angular-cli/issues/3507
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"ng github-pages:deploy\" is fail on 1.0.0-beta.22-1","articleBody":"Error message.\r\n```\r\nCommand failed: git clean -f -d\r\nwarning: failed to remove src/lib\r\n\r\nThere was a permissions error during git file operations, please close any open project files/folders and try again.\r\nYou might also need to return to the master branch manually.\r\n```\r\n\r\n---\r\n\r\nMy Environment.\r\n```\r\n$ ng --version\r\nangular-cli: 1.0.0-beta.22-1\r\nnode: 6.7.0\r\nos: win32 x64\r\n```\r\n\r\n---\r\n\r\nMy Solution\r\n(from)\r\n```\r\n// node_modules/angular-cli/commands/github-pages-deploy.js\r\n\r\n function cleanGhPagesBranch() {\r\n return execPromise('git ls-files')\r\n .then(function (stdout) {\r\n var files = '';\r\n stdout.split(/\\n/).forEach(function (f) {\r\n // skip .gitignore \u0026 404.html\r\n if ((f != '') \u0026\u0026 (f != '.gitignore') \u0026\u0026 (f != '404.html')) {\r\n files = files.concat(\"\\\"\" + f + \"\\\" \");\r\n }\r\n });\r\n return execPromise(\"git rm -r \" + files);\r\n });\r\n }\r\n```\r\n(to)\r\n```\r\n function cleanGhPagesBranch() {\r\n return execPromise('git ls-files')\r\n .then(function (stdout) {\r\n var files = '';\r\n stdout.split(/\\n/).forEach(function (f) {\r\n // skip .gitignore \u0026 404.html\r\n if ((f != '') \u0026\u0026 (f != '.gitignore') \u0026\u0026 (f != '404.html')) {\r\n files = files.concat(\"\\\"\" + f + \"\\\" \");\r\n }\r\n });\r\n // return execPromise(\"git rm -r \" + files);\r\n if (files) {\r\n return execPromise(\"git rm -r \" + files);\r\n } else {\r\n return execPromise('git ls-files'); // do something\r\n }\r\n });\r\n }\r\n```\r\n\r\nIt works.","author":{"url":"https://github.com/ovrmrw","@type":"Person","name":"ovrmrw"},"datePublished":"2016-12-10T14:25:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/3507/angular-cli/issues/3507"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5d4bdd64-6018-67b1-4104-5a47ec3fcf78 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D32C:28B211:19A0ECF:20F0B70:6990EB46 |
| html-safe-nonce | 4a0f673dde73dcf0ebd3cfda741db01d567653cb6567b0d7e71045fa7f2eb30e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzJDOjI4QjIxMToxOUEwRUNGOjIwRjBCNzA6Njk5MEVCNDYiLCJ2aXNpdG9yX2lkIjoiODE3Mzc1NTA5NzQ2NzEyMDQ1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e86fe0a5c06dab3e94dc9f89e4e10bbe6077161aac1b13ce91c6f572d9948911 |
| hovercard-subject-tag | issue:194770753 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/3507/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ccfd133379d0d75081430074a1429b1d1637f3abbb846c16ff956e139e4b034b/angular/angular-cli/issues/3507 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ccfd133379d0d75081430074a1429b1d1637f3abbb846c16ff956e139e4b034b/angular/angular-cli/issues/3507 |
| og:image:alt | Error message. Command failed: git clean -f -d warning: failed to remove src/lib There was a permissions error during git file operations, please close any open project files/folders and try again.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ovrmrw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width