Easy way to rotate all vertices along desired shape?
I don't know what is final purpose of your curved shape, but you can consider to try ... Curve object with

Shape &gt; Resolution 8
Geometry &gt; Bevel &gt; Depth to something you like
Geometry &gt; Bevel &gt; Resolution to zero
(it brings default round profile shape to square, like your)


You can easily adjust curvature and if you would need to continue with mesh object, just search for Convert to Mesh operator.