Dictionary.com:
she·bang/ʃəˈbæŋ/ Show Spelled [shuh-bang]
noun
1. Informal. the structure of something, as of an organization, contrivance, or affair: The whole shebang fell apart when the chairman quit.
2. a primitive dwelling; shack; shanty.
--------------------------------------------------------------------------------
Origin:
1860–65, Americanism; origin uncertain (perhaps alteration of char-À-banc , though sense shift unclear; shebeen, often cited as the source, is implausible both phonetically and semantically)
Wiktionary:
shebang
Definition from Wiktionary, the free dictionary
English[edit]Etymology 1[edit]First seen in 1862 meaning a “temporary shelter”. For instance in the US Civil War (1860-65), the small self-constructed shelters made by Union soldiers in the Confederate Prisoner-of-War camp at Andersonsville, south of Atlanta, Georgia, were known as "Shebangs". [1]
The usage as “temporary shelter” perhaps from shebeen (“cabin where unlicensed liquor is sold and drunk”), pre-1800, chiefly in Ireland and Scotland, from Irish seibin (“small mug”), diminutive of seibe (“mug, bottle, liquid measure”)
Modern sense "the whole shebang", origin unknown but meaning "all of the parts" of what is being referred to.
Alternative forms[edit]chebang, schebang, sheebang
Noun[edit]shebang (uncountable)
1.Any matter of present concern; thing; or business. [quotations ▼]
1869, Samuel Clemens (Mark Twain), letter to publisher:[2] I like the book, I like you and your style and your business vim, and believe the chebang will be a success.1934, Robert E. Howard, Sluggers on the Beach: "Before I'd share anything with you," he said bitterly, "I’d lose the whole shebang."
2.(obsolete) A vehicle.[3] [quotations ▼]
1871, December 14, Samuel Clemens (Mark Twain), “Roughing It” (lecture), printed in Fred W. Lorch, “Mark Twain’s Lecture from Roughing it”, in American Literature, volume 22, number 3 (November 1950), pages 305: […] So they got into the empty omnibus and sat down. Colonel Jack says: “...What is the name of this.” Colonel Jim told him it was a barouche. After a while he poked his head out in front and said to the driver, “I say, Johnny, this suits me. We want this shebang all day. Let the horses go.”
3.(archaic) A lean-to or temporary shelter. [quotations ▼]
1862, Walt Whitman, Journal, December: Their shebang enclosures of bushes.1889, Bret Harte, The Heritage of Dedlow Marsh They say that old pirate, Kingfisher Culpepper, had a stock of the real thing from Robertson County laid in his shebang on the Marsh just before he died.