Loading...


Related Products


How do I resolve a code push error?

Description

Build stageJobError messageCategoryResponsibility
Deploy DrupalDeploy Branch to Acquia and Deploy Tag to Acquia jobsIn PushArtifactCommand.php line 100: [Acquia\Cli\Exception\AcquiaCliException] Pushing code was aborted because your local Git repository has uncommitted changes. Please either commit, reset, or stash your changes via git.ApplicationCustomer

Potential cause

Directories are committed in the codebase. Git must ignore the directories so that Composer can add them during the build.

Solution

Update the .gitignore file in the root directory of your project so that Git ignores the proper directories. The recommended .gitignore file is located in this location.

If Git does not ignore the pushed or tracked files even after updating the .gitignore file, run the following commands from the root directory of your project:

  • git rm -r --cached .

  • git add .

After executing the commands, the system displays all the files that are ignored by the current .gitignore file in staged changes.

Description

Build stageJobError messageCategoryResponsibility
Deploy DrupalBuild artifact from branch/tag

Permission denied (publickey).

fatal: Could not read from remote repository.

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

PlatformCustomer

Potential causes

  • The user is not a member of the Cloud Platform subscription.

  • The user's role in Cloud Platform does not have access to push code.

  • Cloud Platform has an issue.

Solutions

Description

Build stageJobError messageCategoryResponsibility
N/AN/A

[email protected]: Permission denied (publickey,keyboard-interactive). fatal: Could not read from remote repository.

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

N/ACustomer

Potential cause

If you cannot push code from your Cloud IDE or local development environment to your Code Studio repository due to this error, you must update your git remote to use the HTTPS URL instead of the SSH URL.

Solution

Update your git remote to use the HTTPS URL of your repository.

To find the HTTPS URL:

  1. Navigate to your Code Studio project.
  2. Click Clone.
  3. Click the Copy icon to copy the value specified in the Clone with HTTPS field.

To update your git remote:

  1. Remove the current git remote from your Cloud IDE or local development environment.

    If your remote name is origin, run the following:

    git remote remove origin                                                                                                                                               
  2. Add the new remote using the copied HTTPS URL.

    If you want your remote name to be origin, run the following:

    git remote add origin <URL>                                                                                                                                               

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation