1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-19 21:28:28 +02:00
lazygit/test/repos/pre_commit_hook.sh
2018-08-14 11:05:26 +02:00

10 lines
174 B
Bash
Executable File

#!/bin/bash
set -ex; rm -rf repo; mkdir repo; cd repo
git init
cp ../extras/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
echo "file" > file
git add file