Jesus was known as the Nazarene, or as being from Nazareth. He was born under the Law, to Jewish parents, and it was considered a shame for a man to have long hair, unless you had taken a Nazarite vow. But Jesus was not a Nazarite:
Num 6:1-21 And the LORD spake unto Moses, saying, (2) [...]