Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Using git filter-branch to Git Change Commit Author

$ git filter-branch --env-filter '
WRONG_EMAIL="wrong@example.com"
NEW_NAME="New Name Value"
NEW_EMAIL="name@example.com"

if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
    export GIT_COMMITTER_NAME="$NEW_NAME"
    export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$WRONG_EMAIL" ]
then
    export GIT_AUTHOR_NAME="$NEW_NAME"
    export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags
Comment

PREVIOUS NEXT
Code Example
Shell :: how to set gopath/bin linux 
Shell :: git checkout to pr 
Shell :: using docker as a managed vm 
Shell :: how to chekc jupyter lab version 
Shell :: connect vscode to gitlab 
Shell :: check logstash config 
Shell :: linux scp 
Shell :: how to see what files are committed in git 
Shell :: configure: error: --with-openssl was given but OpenSSL could not be detected 
Shell :: bash get create temporary 
Shell :: how to trigger new heorku build without diting git 
Shell :: mariadb delete database 
Shell :: Ansible gather facts with adhoc command 
Shell :: amazon linux wireguard 
Shell :: exit telnet 
Shell :: remove branch not published yet 
Shell :: how to define a variable in bashrc 
Shell :: install global package golang 
Shell :: rename master to main 
Shell :: how to move many folders linux 
Shell :: bash keyboard shortcuts 
Shell :: unporotected ssh key aws 
Shell :: linux recursive find file content 
Shell :: how to install bwa in ubuntu 
Shell :: remove all files starting with linux 
Shell :: linux change user shell /bin/false 
Shell :: create .pem file from crt 
Shell :: jupyter lab download 
Shell :: surge installation 
Shell :: github delete branch remote 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =