Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I edit the issue ID on a git Smart Commit?

Debsankar Mukhopadhyay
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 2, 2019

I have two JIRAs: ABC-100 and ABC-101. The codebase for ABC-100 is in git repo 1 and the code for ABC-101 is in codebase 2. When i committed the code changes on git repo 2, I entered a wrong issue id: ABC-100. As a result, the branch/commit are showing up under ABC-100. 

How can I clean it up so that the code changes on git repo 2 shows up on ABC-101.

I have edited the message on the git commit from: "ABC-100: bla bla bla" to "ABC-101: bla bla bla". 

But that does not prevent git repo 2 to show up under ABC-100.

 

Is there any solution to this issue?

1 answer

0 votes
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 16, 2019

I have edited the message on the git commit from: "ABC-100: bla bla bla" to "ABC-101: bla bla bla".

Git commits are immutable. How did you change it? You've recreated a commit on a branch with a force push? Or maybe used 'git notes'? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events