Some local refs could not be updated error while running a plan

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible


User may get some local refs could not be updated error while attempting to run a plan branch to a given repository.


Not applicable.


This error can be found in the build logs:

(unable to update local ref) error: some local refs could not be updated; try running 'git remote prune ssh://aabbccdd-1234-4567-8910-aabbccddeeff@' to remove any old, conflicting branches)


This issue can be caused due to old and conflicting git caches that are stored either on Bamboo server or in the remote agents. 


To fix this issue you will have to delete the conflicting git cache from the repository by following the steps below:

  1. Go to Bamboo administration >> BUILD RESOURCES >> Repository settings and find the plan which is failing with the error.
  2. Click on Delete on the Operations

Last modified on Apr 26, 2021

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.