My steps: [root@host105 svnconf]# cd /home/git/repositories/testing.git/hooks/ [root@host105 hooks]# touch post-receive [root@host105 hooks]# vim post-receive [root@host105 hooks]# cat post-receive #!/bin/sh tracenv=/home/projects/xxx # change with your Trac environment's path repos=testing # change with your repository's name while read oldrev newrev refname; do if [ "$oldrev" = 0000000000000000000000000000000000000000 ]; then git rev-list --reverse "$newrev" -- else git rev-list --reverse "$newrev" "^$oldrev" -- fi | xargs trac-admin "$tracenv" changeset added "$repos" done [root@host105 hooks]# -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to firstname.lastname@example.org. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.