Generate file on git branch create -


every time new branch specific prefix (e.g. "release/...") created, need perform action. server-side update hook, client-side handling not sufficient considering requirement.

the action need perform reading contents of file (lets call a.txt) in git branch. file present, not have affected commit or similar. need generate new file (b.txt) based on contents of read file , add generated file (a.txt) newly created branch.

so outcome this:

git-root | +---release/1.5.6     |     +---somedirectory     +---a.txt // file need read     +---b.txt // generated git-hook 

is possible , if yes, how can achieve this?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -