Skip to content

Instantly share code, notes, and snippets.

@rutgerhensel
Created February 17, 2016 23:53
Show Gist options
  • Select an option

  • Save rutgerhensel/61d06985885bbcb430e6 to your computer and use it in GitHub Desktop.

Select an option

Save rutgerhensel/61d06985885bbcb430e6 to your computer and use it in GitHub Desktop.
git rename directory on mac os x
mv foo foo2
git add -A
git commit -m "renaming"
mv foo2 FOO
git add -A
git commit --amend -m "renamed foo to FOO"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment