Skip to content

Post-commit git hook that puts the time worked on every commit to a file.

License

Notifications You must be signed in to change notification settings

GokhanArik/git-hooks-timesheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

git-hooks-timesheet

Post-commit git hook that puts the time worked on every commit to a file.

Usage

Copy post-commit file and put in your project's .git/hooks/ folder. Make sure it is executable.

Commit Message

It recognizes patterns in following formats:

"(StoryNumber).(TaskNumber) - (HoursWorked) Commmit message"

"(EpicNumber).(StoryNumber).(TaskNumber) - (HoursWorked) Commmit message"

For example,

If you worked on task 4.2 for 3 hours, your commit message would be:

"4.2-3 Screenshot bug fixed."

If you worked on task 4.2.3 for 2 hours, your commit message would be:

"4.2.3-2 Screenshot bug fixed."

After a successfull commit, a file named timesheet.txt will be created on your dekstop in following format:

Monday: 3.1 - 1 hours

Monday: 6.4 - 1 hours

Monday: 6.3 - 2 hours

Tuesday: 4.4 - 1 hours

About

Post-commit git hook that puts the time worked on every commit to a file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages