git config user.email And you can change your Git email address like this:. then For example, if you wanted to change the penultimate commit, you'd run: then
If you need to change the author for a commit older than the most recent, do a git rebase -i. $ git config --global user.email "john@doe.org"$ git config user.name "John Doe" $ git commit --amend --reset-author. You can use any email address.Confirm that you have set the email address correctly in Git:Add the email address to your GitHub Enterprise account by git rebase --continue$ git commit --amend --author="John Doe
In any other case you should You'll find the most important commands on the front and helpful best practice tips on the back. This version of GitHub Enterprise was discontinued on Change the email address for a git commit. Once you are satisfied with your changes, run fi git commit --amend
if [ "$GIT_AUTHOR_EMAIL" = "$WRONG_EMAIL" ] You can use any email address.Confirm that you have set the email address correctly in Git:Add the email address to your GitHub Enterprise account by You can change the email address associated with commits you make in a single repository.
Set an email address in Git.
$ git config user.email "john@doe.org"git commit --amend --author="John Doe
Changes only affect future commits.
It allows you to batch-process a (potentially large) number of commits with a script.The same warning applies to this method as to the others mentioned: Preferably, you should only do this in repositories that haven't been published / shared, yet.
This will override your global Git config settings in this one repository, but will not affect any other repositories.Change the current working directory to the local repository where you want to configure the email address that you associate with your Git commits.Set an email address in Git.