If there are conflicts (i.e., changes on the remote that are not in your local branch), Git will reject the push, and you will need to pull the latest changes from the remote repository, resolve the conflicts, and then push again.
Example:
git pull origin main
# Resolve conflicts
git push origin main