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