Asumming we have a fully tracked repo under main.
We follow these steps:
See method 3 here, especially from steps 1-3
Then when we want to push, we do the following line below (which skips step 4 in the method 3 above):
git push prasasti latest:main --force (credit & source)