Derived from the phrase "cowboy up", meaning "be tough, be strong, act like a real cowboy", which was in use in rodeo circles at least since the mid-1970's. "
Man up" means, similarly, "be tough, be a
man, do what a
man should do." Other derivations, such as "woman up", are common.