工作中小玩意

每天都git,烦死了???

#!/bin/bash
git add .
date=`date +%Y-%m-%d:)%H:%M:%S`
if [[ $1 ]]; then
	# 自定义
	git commit -m "$1";
	
else
	git commit -m "${date}";
fi

git push

  放到/usr/local/bin/gp     gp 就说这些,默认commit内容为时间

原文地址:https://www.cnblogs.com/boundless-sky/p/8795769.html