-
-
Save srhb/ada306f0445d1bb2fb75c62cb06d7cbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/scratch | |
| ❯ mkdir testrepo && cd testrepo | |
| ~/scratch/testrepo | |
| ❯ git init | |
| Initialized empty Git repository in /home/sarah/scratch/testrepo/.git/ | |
| ~/scratch/testrepo master | |
| ❯ echo '#!/bin/sh\necho foo' >> .git/hooks/pre-commit | |
| ~/scratch/testrepo master | |
| ❯ chmod u+x .git/hooks/pre-commit | |
| ~/scratch/testrepo master | |
| ❯ touch bar | |
| ~/scratch/testrepo master* | |
| ❯ git add bar | |
| ~/scratch/testrepo master* | |
| ❯ git commit -m "" | |
| foo | |
| Aborting commit due to empty commit message. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment