Fetch, pull, and push
Read ahead and behind counts, confirm your upstream, and synchronize a branch with its remote.
Fetch and read the branch status
Select Fetch to update MoonGit's view of the remote branches. Check the current branch, the remote it tracks, and the ahead and behind counts. For example, a branch tracking origin/main can be one commit ahead and two behind.
| After fetching | Next step |
|---|---|
| Behind only | Review the remote changes and Pull to integrate them. |
| Ahead only | Review the destination and Push when the commits are ready to share. |
| Ahead and behind | Compare the two histories and review the pull or merge plan before integrating. |

Pull remote commits into your branch
Check the upstream on the branch you want to update. Select Pull, then review any integration prompt. A fast-forward advances the branch to the remote tip. If Git stops on a conflict, resolve it. Check the new tip and ahead/behind counts after the operation.
Publish your commits
Select Push and check both the remote and branch. For a new branch, choose the destination and set its upstream when offered so future fetch, pull, and push operations use it. Fetch afterwards and check the tracking status. If the server rejects the push, see Permission denied or push rejected.
MoonGit