You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kickstart.nvim/git_commit.sh

13 lines
380 B
Bash

#!/bin/bash --login
if [[ $1 != "" && $2 != "" && $3 != "" ]]; then
# Default Strategy is to merge codebase
git config pull.rebase false
git config commit.gpgsign true
git pull origin master
git add . --all
git commit -a -S --author="${1} <${2}>" -m "${3}"
git push -u origin master
else
echo "USAGE: ${0} '<full name>' <email address> '<git commit comments>'"
fi