Hook for Git that updates remote path field in sftp-config.json
file when changing branches. Useful when you're working with differents branches in the same repo and using sftp plugin for Sublime Text 2/3.
You need to have jq installed in your system.
For Mac: $ brew install jq
For Debian/Ubuntu: $ sudo apt-get install jq
More info: https://stedolan.github.io/jq/download/
Download and execute install.sh
or use this command:
curl -L https://raw.githubusercontent.com/Yelrado/sftp-config-hook/master/install.sh | bash
After installing the script please set your set PREFIX and USER variables in .git/hooks/post-checkout
.