It it safe to commit at branch A, branch a new branch B, amend last commit at A, leaving B with the new commit?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Amending a commit changes the tag of that commit. So branch B will have a new commit that branch A doesn’t have and branch A will have a new commit that branch B doesn’t have in this case. If you merge branch B back into A with a simple merge, your log in branch A will look like: