Last active
February 18, 2022 14:18
-
-
Save hhhaiai/45ec2aaf2dc191cb4588b21004c6c2b4 to your computer and use it in GitHub Desktop.
git commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpp() { | |
if [ -z "$(git status --porcelain)" ] | |
then | |
echo "============================nothing to update.===============================" | |
else | |
git add . | |
if [ -z "$1" ] ;then | |
git commit -am "update sth. at $(date '+%Y-%m-%d %H:%M:%S')" | |
else | |
git commit -am "$1. at $(date '+%Y-%m-%d %H:%M:%S')" | |
fi | |
git push | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
window bat