using git with proxy


Stuff that everyday I end up googling….

* Get the commit before file deletion
git rev-list -n 1 HEAD -- <file_path>

* the ^ is important
git checkout <commit>^ -- <file_path>


Run scripts on given actions.

Main doc

Just copy one of the examples available on the .git/hooks and remove the sample from filename and add +x to the file.

Note that the hooks that you create don’t get updated on repo, if you want to share it with others you need to add it inside the repo and configure the git client to use that dir for hooks.