amend Bitbucket

Narcis Grabolosa August 27, 2015

I have done in my local: git commit --amend -m “corrected message”

 Then git push

But I have

Updates were rejected because the tip of your current branch is behind

How should I correct my last commit message in Bitbucket? Can I just write in the web of Bitbucket and correct the message there?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Narcis Grabolosa August 27, 2015

I do not understand. What this does is going back to the commit with the mistake in local

0 votes
rrudnicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2015

Hi Narcis, 

 

If you have already made some commits, you can do the following

git pull --rebase

This will place all your local commits on top of newly pulled changes.

 

Cheers, 

Renato Rudnicki

TAGS
AUG Leaders

Atlassian Community Events