Date Published: May 27, 2025
How do I resolve a code push error?
Description
Build stage | Job | Error message | Category | Responsibility |
---|
Deploy Drupal | Deploy Branch to Acquia and Deploy Tag to Acquia jobs | In 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. | Application | Customer |
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 stage | Job | Error message | Category | Responsibility |
---|
Deploy Drupal | Build 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.
| Platform | Customer |
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 stage | Job | Error message | Category | Responsibility |
---|
N/A | N/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/A | Customer |
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:
- Navigate to your Code Studio project.
- Click Clone.
- Click the Copy icon to copy the value specified in the Clone with HTTPS field.
To update your git remote
:
Remove the current git remote
from your Cloud IDE or local development environment.
If your remote name is origin
, run the following:
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.