We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4716107 commit 1e515c6Copy full SHA for 1e515c6
git_cookbook.md
@@ -19,3 +19,8 @@ Solution: This is called "squashing" in git parlance. There are a few ways to do
19
Problem: I was playing around on the command line and messed up my local clone. I want to wipe the changes clean to match the remote
20
21
Solution: `git reset --hard origin/master` ([via SO](https://stackoverflow.com/questions/1628088/reset-local-repository-branch-to-be-just-like-remote-repository-head))
22
+
23
+## Changing the Author of the Last Commit
24
+Problem: I merged an MCZ of which I was not the author, and would like to preserve proper authorship in git.
25
26
+Solution: `git commit --amend --author="John Doe <[email protected]>"` ([via Tower](https://www.git-tower.com/learn/git/faq/change-author-name-email))
0 commit comments