Change commit author at one specific commit?

Interactive rebase off of a point earlier in the history than the commit you need to modify ( git rebase -i.

Interactive rebase off of a point earlier in the history than the commit you need to modify (git rebase -i ). In the list of commits being rebased, change the text from pick to edit next to the hash of the one you want to modify. Then when git prompts you to change the commit, use this: git commit --amend --author="Author Name.

1 This is not clear answer for beginner, but it's correct. – MicTech Jun 15 '10 at 5:26 1 Good answer, but for beginners: first find a commit preceding the one you would like to change, then run git rebase -i – Mathew Byrne Aug 3 at 1:30 Thank god I'm no beginner... :-) – Lars Aug 31 at 19:45.

The answers in the question to which you linked are good answers and cover your situation (the other question is more general since it involves rewriting multiple commits). As an excuse to try out git filter-branch, I wrote a script to rewrite the Author Name and/or Author Email for a given commit: #! /bin/sh # # Change the author name and/or email of a single commit.

# # change-author -f commit-to-change branch-to-rewrite new-name new-email # # If -f is supplied it is passed to "git filter-branch". # # If is not provided or is empty HEAD will be used. # Use "--all" or a space separated list (e.g."master next") to rewrite # multiple branches.

# # If (or ) is not provided or is empty, the normal # user. Name (user. Email) Git configuration value will be used.

# force='' if test "x$1" = "x-f"; then force='-f' shift fi die() { printf '%s\n' "$@" exit 128 } targ="$(git rev-parse --verify "$1" 2>/dev/null)" || die "$1 is not a commit" br="${2:-HEAD}" TARG_COMMIT="$targ" TARG_NAME="${3-}" TARG_EMAIL="${4-}" export TARG_COMMIT TARG_NAME TARG_EMAIL filt=' if test "$GIT_COMMIT" = "$TARG_COMMIT"; then if test -n "$TARG_EMAIL"; then GIT_AUTHOR_EMAIL="$TARG_EMAIL" export GIT_AUTHOR_EMAIL else unset GIT_AUTHOR_EMAIL fi if test -n "$TARG_NAME"; then GIT_AUTHOR_NAME="$TARG_NAME" export GIT_AUTHOR_NAME else unset GIT_AUTHOR_NAME fi fi ' git filter-branch $force --env-filter "$filt" -- $br.

Works perfectly. Thanks. – bradhouse Mar 5 at 3:47.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions