Hello Ashish,
Welcome to Atlassian community.
From the error which you have provided I can see the exception > "error: cannot open .git/FETCH_HEAD: Permission denied"
The Git “Cannot open .git/FETCH_HEAD: Permission denied” error occurs when you try to pull code from a remote repository when the .git/ directory in your server file system is inaccessible to your current user which is running the build.
I am not sure if you are running this on local or remote agent, but if you are running this build on local agent, make sure the user which is running the Bamboo service has read/write access to the above folder. For remote agent you need to provide the similar permission for the user which is running the remote agent.
Regards,
Shashank Kumar
**please don't forget to Accept the answer if your query was answered**
It looks like you're new here. Sign in or register to get started.