Suppose you do a Git commit and then push to a remote repo. Then someone else pulls. Then you make a change and amend the commit.
When the amended commit is pushed and then pulled by someone else, will it cause a problem?
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.
Yes; amending a commit creates an entirely new commit with a completely different SHA1 hash value (ID). The rule of thumb is that you should never rebase or amend commits that have been pushed to a shared branch.