Hi,
Can anyone help me in my quest in sourcetree?
I am trying to produce the problem that one can have if he uses git --amend to amend an already pushed commit. I know the concept of the problem that can occur by this. But I want to produce it to demonstrate to my developers and create a little user guide for them on how to effectively use git --amend command.
I am not able to see what problem can occur if we amend a pushed commit.
What I am trying to do is:
1) Create a master repository,
2) Then clone it at two different places.
3) At one clone I make some changes and then commit them. Push them.
4) At another clone, I pull those changes, create a branch based on them and commit them. But do not push them.
5) Now back at clone one, I make some more changes and commit them with amend option and replace the recent commit that had already been pushed.
6) It does give me those two warning popup messages but I proceed through.
7) After that I go the clone2 and pull the changes, which come through. Now here I should see some problems, right? but I do not. so what issue has git --amend caused here?
Regards
Sandeep Anand