Skip to content

Github Deploy failed and erased my local repo #4333

Closed
@markgoho

Description

@markgoho

Please provide us with the following information:

OS?

Windows 10

Versions.

angular-cli: 1.0.0-beta.26
node: 7.4.0

Repro steps.

I ran the github-pages deploy command from the windows power shell.

The log given by the failure.

[master ≡]> ng github-pages:deploy -m "Trying to deploy using angular cli"
Hash: 14405ceffd8e1bebe48d
Time: 24975ms
chunk {0} main.bundle.js, main.bundle.map (main) 3.03 MB {2} [initial] [rendered]
chunk {1} styles.bundle.css, styles.bundle.map, styles.bundle.map (styles) 1.69 kB {2} [initial] [rendered]
chunk {2} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry] [rendered]
Command failed: git clean -f -d
warning: failed to remove debug.log
warning: failed to remove mockup/node_modules/node-sass/vendor/win32-x64-51/binding.node
warning: failed to remove src/app/categories
warning: failed to remove src/app/posts

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 master branch manually. You might also need to return to the initial branch manually.

Mention any other details that might be useful.

This command removed all existing files from my project and appears to have like re-initialized the whole repo. I'm not a Git power user, so this might have something to do with branches, but I basically have to re-clone my repo from Github because nothing is left.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions