Skip to content

Instantly share code, notes, and snippets.

@xyng
Last active August 25, 2015 19:44
Show Gist options
  • Save xyng/829b8debe8295b0a2ac4 to your computer and use it in GitHub Desktop.
Save xyng/829b8debe8295b0a2ac4 to your computer and use it in GitHub Desktop.
Git Rename Alias to make changing capitals easy
[alias]
rename = "!f(){ git mv \"$1\" \"$1\"2 && git mv \"$1\"2 \"$2\"; };f"

Usage

git rename name Name

This will rename the specified folder to the new specified name and stage it. Don't forget to commit ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment