Git: how to deal with different shebang -


how people deal different shebangs between local , remote?

for example, local python /usr/bin/python, whereas web host purpose-built python @ ~/local/bin/python. lead developer may have ruby @ /usr/bin/ruby, whereas mine /usr/local/bin/ruby.

i manually edit shebang, git marks change. ideally, git ignore first line of file, or perhaps ignore regex match of lines within file.

it seems me must common problem, cannot find mention of it.

i use git, not call myself expert stretch.

change to

#!/usr/bin/env python 

or

#!/usr/bin/env ruby 

then should work on systems, provided have python , ruby in path environment variable.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -