I know this may sound crazy but I think it will work.. We have to report quick wins each week to the manger so what I was thinking is that we can use git to do the logging and then the manager can just pull the pass 7 days of the log.
so I create a git repo with the following command
mkdir mynotes.git
cd mynotes.git
git init
I then create this script in it:
#!/bin/sh
clear
echo "Quick Logging (Press Enter on a blank line to exit)"
while true
do
echo
read -p "log> " logtext
if test -z "$logtext"
then
exit 0
else
git commit --allow-empty -m "$logtext"
fi
done
So then each much of the team can do a git pull and push to the repo.. The issue that I am having is that if someone pushed to the repo as someone else is logging and then trys to push we get this error.
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@git.xxxx.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
How can we make this system work.. it sounds like something great if we can get it working