BitBucket cloud dosn't show changes after git replace

Ori Menachem
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!
December 16, 2024

I've performed a git replace command to edit commit message and pushed the 'refs/replace' folder.

On my local machine the commit message change but on the cloud the commit yet appears as the old message.

The old commit message contains ref to the wrong task and I need to change it.

1 answer

1 accepted

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 17, 2024

Hello @Ori Menachem ,

and welcome to the Community!

When you perform a git replace command to modify a commit message, it creates a replacement object locally but does not rewrite the commit history. This means that while your local repository reflects the changes, these changes are not automatically applied when you push to a remote repository like Bitbucket Cloud.

To properly change a commit message in a way that is reflected on the remote, you'll need to rewrite history using an interactive rebase or similar method such as git amend.

For further details on that process, you can check the following tutorial : 

Thank you, @Ori Menachem !

Patrik S

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events