Step one:
Add PATH=".git/safe/../../bin:$PATH"
to your PATH
If you're using bash or zsh:
echo 'PATH=".git/safe/../../bin:$PATH"' >> ~/.$0rc
If you're using fish,
fish_add_path -p ".git/safe/../../bin"
Step two:
In your Ruby project directory, and any subsequent Ruby project directories, run mkdir .git/safe
.
Voila! Props to @thorncp for telling me about this and props to the legendary Tim Pope for coming up with it (I believe)
Top comments (0)