Here is a trick to let the forgotten change look like it was added in your last commit. This prevents discussions in your team about the last commits.
git add <forgotten filename>
git commit --amend --no-edit
If you make a:
git log --graph --all --stat --decorateIt will show up only your last commit with both changes in it. The prevois and the last commit.
Please do only use that on your local history. History manipulation on remote repositories breaks codebases and causes trouble in your dev-team
Keine Kommentare:
Kommentar veröffentlichen