Added git-amend-author

This commit is contained in:
斟酌 鵬兄 2022-08-14 22:54:35 +08:00
parent 0669da315b
commit 3e8c61bf56

View File

@ -14,6 +14,13 @@ function git-config-as {
echo "Configured as \"$NAME <$EMAIL>\""
}
function git-amend-author {
NAME=$( git config user.name )
EMAIL=$( git config user.email )
git commit --amend --no-edit --author "$NAME <$EMAIL>"
}
if [ ! -f "$HOME/.gitconfig" ]; then
cat << ___CONF___ > "$HOME/.gitconfig"