Added git-amend-author
This commit is contained in:
parent
0669da315b
commit
3e8c61bf56
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user