Complete the code to create a post-merge hook script that prints a message after merging.
#!/bin/sh echo "[1]"
The post-merge hook script runs after a merge. Printing a message like "Merge completed successfully!" confirms the merge.
Complete the code to make the post-merge hook executable.
chmod [1] .git/hooks/post-mergeThe post-merge hook script must be executable. Using chmod +x sets the executable permission.
Fix the error in the post-merge hook script to correctly run a command after merge.
#!/bin/sh git [1]
After a merge, running git status shows the current state. Using git merge inside post-merge causes errors.
Fill both blanks to write a post-merge hook that updates submodules and prints a message.
#!/bin/sh git [1] --recursive echo "[2]"
The post-merge hook can update submodules with git submodule update --recursive and then print a success message.
Fill all three blanks to create a post-merge hook that logs the merge time, updates submodules, and prints a message.
#!/bin/sh echo "Merge done at $(date)" >> merge.log git [2] --recursive echo "{{BLANK_3}}"
This script logs the current date and time to merge.log, updates submodules recursively, and prints a success message.