Made the link static again
This commit is contained in:
parent
9a17e11ce8
commit
8a298fa3f9
4 changed files with 106 additions and 2 deletions
15
get_commit.sh
Executable file
15
get_commit.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Define the output file name
|
||||
OUTPUT_FILE="commit_history.txt"
|
||||
|
||||
# Check if the file already exists
|
||||
if [ -f "$OUTPUT_FILE" ]; then
|
||||
echo "File $OUTPUT_FILE already exists. Deleting it."
|
||||
rm "$OUTPUT_FILE"
|
||||
fi
|
||||
|
||||
# Create a new commit history file with detailed information
|
||||
git log --pretty=format:"%H - %an <%ae>, %ar, %ad : %s" --date=iso > "$OUTPUT_FILE"
|
||||
|
||||
echo "Commit history has been exported to $OUTPUT_FILE."
|
Loading…
Add table
Add a link
Reference in a new issue