Welcome to the Linux Foundation Forum!

Formatting error in "Git Post-Commit Hooks"

Hello

The page says

Then, edit the .git/hooks/post-commit file to contain only the following two lines:

and goes off to mention 4 lines. IMHO, #!bash redundant shebang should be removed
and

Make sure the file is executable

should have a different formatting than the above two lines.
I guess #!bash wasn't meant to be a shebang but some sort of formatting instruction that should have ended after two lines.

Comments

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training