use shell to push to main
Angie An

use shell to push to git

1
2
3
4
5
6
7
8
9
$cat push_to_main.sh

current_date=$(date +"%Y-%m-%d")
arg=$1
commitment=${current_date}${arg}

git add .
git commit -m $commitment
git push origin main
 Comments