crib (n.)
Old English cribbe "manger, fodder bin in cowsheds and fields," from a West Germanic root (cognates: Old Saxon kribbia "manger;" Old Frisian and Middle Dutch kribbe; Old High German krippa, German Krippe "crib, manger") probably related to German krebe "basket." Meaning "child's bed with barred sides" is 1640s; probably from frequent use in reference to the manger where infant Jesus was laid. Thieves' slang for "dwelling house" dates to at least 1812, but late 20c. use probably is independent. The Old High German version passed to French and became creche.
crib (v.)
"steal," 17c. from crib (n.) in a secondary sense "a basket;" this probably also is the source of student slang meaning "plagiarize" (1778). Related: Cribbed; cribbing.