Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

you can only edit the head of a branch

Ahmed Amin Bakhabou
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 16, 2018

i had a problem with pipeline yml file where i was normaly able to edit it and commit my chamges, after the 9th commit i couldnl;t edit anymore and it desplays the message : "you can only edit the head of a branch", i tried cloning the repo and pulling and editing localy but the uml file doesn't get pulled.

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 20, 2018

Hello Ahmed,

When you see the message "you can only edit the head of a branch", it means you're trying to edit a file that has already been updated. So you need to go to the latest version of that file to edit it there.

If the yml file was not included in the clone/pull, then it's likely that it exists on a different branch than the one you cloned (by default "master" for Git repositories, "default" for Mercurial repositories).

Can you confirm what branch the bitbucket-pipelines.yml file is on, and the copy+paste the git commands you used to clone the repository.

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events