From 1dee9a9ec3a8dc8877f7e84081147b0e00da8ea9 Mon Sep 17 00:00:00 2001 From: Jon Sundin Date: Thu, 25 Jan 2024 13:12:48 -0800 Subject: [PATCH] File Commit From RevPro --- commit-command.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 commit-command.sh diff --git a/commit-command.sh b/commit-command.sh new file mode 100644 index 0000000..a12ab8d --- /dev/null +++ b/commit-command.sh @@ -0,0 +1,15 @@ +mkdir -p .vscode +cat <.vscode/settings.json +{ + "extensions.ignoreRecommendations": true +} +EOF +cat <.git/hooks/post-commit +git push +git log -1 --shortstat > history_log.txt +EOF +chmod +x .git/hooks/post-commit +cat <.git/hooks/pre-commit +chmod 600 ~/.ssh/id_rsa && chmod 644 ~/.ssh/id_rsa.pub && ssh-keyscan github.com >> ~/.ssh/known_hosts +EOF +chmod +x .git/hooks/pre-commit \ No newline at end of file