Skip to content

Instantly share code, notes, and snippets.

@srhb
Created September 28, 2018 14:28
Show Gist options
  • Select an option

  • Save srhb/ada306f0445d1bb2fb75c62cb06d7cbb to your computer and use it in GitHub Desktop.

Select an option

Save srhb/ada306f0445d1bb2fb75c62cb06d7cbb to your computer and use it in GitHub Desktop.
~/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