Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Does SourceTree have an interface for git-hooks?

Not much else to be said. We'd like to work with git-hooks without having to use the command line.

1 answer

1 accepted

2 votes
Answer accepted

There is no option for this in SourceTree. Just copy the hooks into the /.git/hooks/ folder of your clone.

I'm accepting this answer, although I'm also putting in a suggestion for SourceTree.

Like # people like this

SourceTree Mac 2.7.6 here: `/.git/hooks/` is not working anymore.

Just in case, Chris: Are you sure you set the hook script(s) to executable (chmod +x)? I just got here via google because I forgot to do exactly that.

git throws a warning (at least 2.17.1 does) on the console if it sees a script but it isn't set to x, but unless you have the "Command History" shown in SourceTree you won't see that. Was scratching my head for a bit why my very simple pre-commit wasn't called.

@GeroHerkenrath Yup, tried making the hook script executable 👍

Using GIT version: 2.17.1

Oh my.
@GeroHerkenrath I had run chmod +x on the hook file but just now also tried opening up the file with chmod 0755 

Bingo, hook is now picked up.

Thanks for getting me on the right path at least!

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events