Skip to content

Commit

Permalink
File Commit From RevPro
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsundin committed Jan 25, 2024
1 parent e788847 commit 1dee9a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions commit-command.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
mkdir -p .vscode
cat <<EOF >.vscode/settings.json
{
"extensions.ignoreRecommendations": true
}
EOF
cat <<EOF >.git/hooks/post-commit
git push
git log -1 --shortstat > history_log.txt
EOF
chmod +x .git/hooks/post-commit
cat <<EOF >.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

0 comments on commit 1dee9a9

Please sign in to comment.