Skip to content

Git Permission Denied #488

@ProfessorManhattan

Description

@ProfessorManhattan

Process fails at "Check git remote". I just initialized a new git repository using git init and git remote add origin GITLAB_URL and then pushed the files to master. My SSH key has a password on it. Could that be the issue? Also, I'm using Windows CMD with Git Bash executables installed - maybe that could be the issue?

Description

Publish a new version of @professormegabyte/professor (current: 0.0.1)

Commits:
- Initialized base Stencil component and added comments about the lifecycle hooks.  a12acc9

Commit Range:
f5eb6049dfe340b851d6d8a5263dc75a1adabe79...master

? Select semver increment or specify new version patch  0.0.2

  > Prerequisite check
    √ Ping npm registry
    √ Check npm version
    √ Verify user is authenticated
    √ Check git version
    × Check git remote
      → and the repository exists.
      Validate version
      Check for pre-release version
      Check git tag existence
    Git
    Cleanup
    Installing dependencies using npm
    Running tests using npm
    Bumping version using npm
    Publishing package using npm
    Pushing tags

✖ git@gitlab.com: Permission denied (publickey).
Git fatal error: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Aborted!

C:\Users\x\OneDrive\Documents\Websites\x\professor>git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   package.json

no changes added to commit (use "git add" and/or "git commit -a")

Steps to reproduce

I'm not sure. I'm surprised this hasn't already been reported.

Expected behavior

Should not fail, should ask me to enter by SSH key password.

Environment

C:\Users\x\OneDrive\Documents\Websites\x\professor>np --version
5.2.1

C:\Users\blzal\OneDrive\Documents\x\professor>node -v
v10.16.0

C:\Users\blzal\OneDrive\Documents\Websites\x\professor>npm -v
6.9.0

Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions