This article is from the FAQ, by with numerous contributions by others.
You can apply for GC with H-1B but it is advisable to wait for about 3-6 months after you get H-1B to apply for GC.
 
Continue to: