Version Control
Due: 5:00am, Wednesday, February 19, 2025
Description
The purpose of this assignment is to create a Git repository and set up hooks. Here is the assignment criteria:
Create a git repository for the previous shell scripting assignment (project 1.)
Add your script files from the previous assignment to the git repository. Make a separate commit for each file with an appropriate commit message.
Add a
.gitignore
file to the repository to ignore any temporary files that your text editor might create. Make a note of the text editor that you are using on your VM in theREADME
file.Add a pre-commit hook to run shellcheck on all the script files and reject the commit if there are any errors or warnings.
Bonus: create a pre-receive hook that rejects a push if there are any shellcheck errors or warnings.
Turning in the Assignment
To submit your assignment, create a gzipped tar file named project2.tgz
of a
DIRECTORY named project2
containing the following:
A file named
README
that contains a step-by-step description of the setup process. Make sure to include the file paths of any files you created or modified. Note any steps you took to verify that the above criteria are correct.A file named
project2.bundle
that is the result of running thegit bundle
command on the repository.A copy of any files you created or modified; this should include git hook files.
Then submit that file to the appropriate folder on D2L.
Grading Criteria
- Correct implementation of the specification