The origin of this saying is based on driving - either horse drawn carriage or motor cars. Read about it here . What it means in broader terms is using shortcuts or cheap material/labor to do/make something.
No clear origin is found for this term but it generally means that you have found yourself in a messy situation where no solution/resolution is apparent. But sometimes the phrase is flipped to motivate.