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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -