i had put a wrong JIRA task number in the commit message and committed and pushed the changes to bitbuket using source tree, so now i want to change the committed message.
You need to amend the commit (press commit and then choose amend from the commit options above the commit message).
Afterwards, you need to force push to the server, because you are rewriting history. You cannot do this with SourceTree and the server might also stop you from doing it, because it is a potentially destructive operation.
Yes, and if other users have pulled your changes, their workflow will be disrupted as well. Stackoverflow already has information on how they can recover. Please make sure to read both answers to that question: http://stackoverflow.com/questions/6898317/git-pull-analogous-to-opposite-of-git-push-f
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.