The force of gravity does not exist. This force was a newtonian construct to explain why apples fall from trees to the ground and why we don't fall of the earth.
The earth is in freefall around the sun (due to the curvature of space time caused by the suns mass) and bodies in free fall feel no "gravity". As far as the earth is concerned it is travelling in a straight line in curved space time.
ie the shortest distance between 2 points which is a straight line.
We dont fall off the earth due to the inertia and acceleration of the earth.