User Tools

Site Tools


git_hooks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
git_hooks [2017/12/20 02:25] – [pre-receive Hook (Server-Side)] admingit_hooks [2017/12/20 02:34] (current) admin
Line 21: Line 21:
 Given you have the branch ''develop'' and want to avoid merge into any other branch, simply create a file named <code>.do_not_merge__develop</code> Given you have the branch ''develop'' and want to avoid merge into any other branch, simply create a file named <code>.do_not_merge__develop</code>
  
 +==== Expected output in CLI ====
 +
 +{{::hook-pre-receive-acoid-merge.png?800|}}
 ==== The Hook ==== ==== The Hook ====
  
Line 109: Line 112:
     end     end
 end                                                                                                                                                                </code> end                                                                                                                                                                </code>
 +
 +==== ToDo ====
 +
 +  * Find a way to make hook output look pretty in Gitlab {{::gitlab-hook-pre-receive-avoid-merge.png?800|}}
  
git_hooks.1513733145.txt.gz · Last modified: 2017/12/20 02:25 by admin