Under Minnesota law, divorce is called dissolutionof marriage. Divorce cases are decided in family court. The court "dissolves" or ends the marriage when the final papers are entered in the court's records. These final papers are called the Judgment and Decree. The Judgment and Decree contains the court's final decision on other questions too. These include custody, parenting time, child support, and division of debts and property.
If your spouse files an Answer that disputes details in the Petition for Dissolution of Marriage, then the judge will order you and your spouse to trial. There may be a number of hearings and legal proceedings before a trial occurs, so you will probably need an attorney to guide you through the process. Before the trial, you and your spouse’s attorney may engage in evidence requests, witness interviews and negotiations. This may be a lengthy and complex process that could cost you a great deal personally and financially.
Like legal custody, physical custody can be “sole”  or “joint”. “Joint physical custody” means that "the routine daily care and control and the residence of the child is structured between the parties."  Unlike joint legal custody, joint physical custody is the exception rather than the norm, and is usually only granted if both parties agree to it.
In order to maintain the status quo while the divorce is being processed, spouses are allowed to file Motions for Temporary Relief in order to temporarily order child custody, child support, spousal support and any other issues that occur day to day that must be handled while the divorce is being processed. Once the divorce decree is finalized and signed by a judge, the temporary order will expire and the final divorce procedures will go into effect.