tags:

views:

46

answers:

1

The title says it all...

+6  A: 

Google says:

A branch name can not:
    - Have a path component that begins with "."
    - Have a double dot ".."
    - Have an ASCII control character, "~", "^", ":" or SP, anywhere
    - End with a "/"
    - End with ".lock"
    - Contain a "\" (backslash

Update

Thanks @Jakub Narębski. The man page for git check-ref-format has more details.

Manoj Govindan
See `git check-ref-format` and its manpage.
Jakub Narębski
+1. Thanks for the tip.
Manoj Govindan