From be780671d64ba2ccde6350cf14ef8374c0e42b44 Mon Sep 17 00:00:00 2001 From: Luchao Qi Date: Mon, 10 May 2021 17:12:27 -0400 Subject: [PATCH] Luchao's auto-commitment using shell script --- .gitignore | 20 ++++++++++++++++++++ git.sh | 10 ++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 git.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4b8afe7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +tmp + +# Others +.vscode +env +**/.git + + +# R +.Rproj.user +.Rhistory +.RData +.Ruserdata +.RDataTmp* + +# Python +__pycache__ +.pytest_cache +.ipynb_checkpoints +.idea diff --git a/git.sh b/git.sh new file mode 100644 index 0000000..6ac76c1 --- /dev/null +++ b/git.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +#find ./* -size +100M | cat >> .gitignore + +# How to use: double-click OR run the following command +# ./git.sh "Customize your own commitment" + +git pull +git add . +git commit -m "${1:-Luchao"'"s auto-commitment using shell script}" +git push origin main \ No newline at end of file