Skip to content

Instantly share code, notes, and snippets.

@christophergorexyz
Last active December 24, 2015 02:39
Show Gist options
  • Select an option

  • Save christophergorexyz/6732579 to your computer and use it in GitHub Desktop.

Select an option

Save christophergorexyz/6732579 to your computer and use it in GitHub Desktop.
A case sensitive hack for git mv.
#!/bin/bash
tmpFile=`mktemp .csgitmv.XXXX`
git mv -f $1 $tmpFile
git mv $tmpFile $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment