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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.