Tags: misc python git 

Rating:

https://galtashma.com/posts/googlectf-2022-legit-git-challenge-write-up
# Final Solution
### Steps

* Clone our crafted repository
* Use command 1 to make server chdir into inner bare repository
* Use command 3 to request git fetch, this will trigger our fsmonitor script
* script will copy contents of `/flag` into `my-bear-repo/worktree/flag`
* Use command 2 to print the contents of our newly created file `my-bear-repo/worktree/flag`
* Success!

Original writeup (https://galtashma.com/posts/googlectf-2022-legit-git-challenge-write-up).