what happened: change1, git commit, git push, change2, git commit 开发者_JS百科what should have happened:
When I started my git repo I commited a few files as initial commit to it. Now, many commits later, I noticed that I included in those files a line with information which I do not want to publish (unl
In my local repo I have one commit with an incorrect commit message. I\'ve already published the incorrect commit message with git push.
I\'m writing a script that makes some trivial changes and then commits them to git. Because these are trivial changes, I want to do git commit --amend whenever I can get away with it -- specifically,
I don\'t really understand what h开发者_JAVA百科appens if I check out an old commit, do some modifications, and commit using git commit --amend.
There\'s ways to change the message from later commits: git commit --amend# for the most recent commit