Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. gitdir="$(git rev-parse --git-dir)"
  2. hook="$gitdir/hooks/post-commit"
  3.  
  4. # disable post-commit hook temporarily
  5. [ -x $hook ] && chmod -x $hook
  6.  
  7. git commit -a -m "Commit all changes for testing. Will be reverted automatically"
  8.  
  9. # enable it again
  10. chmod +x $hook
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement