Remote Operations
Push and pull changes with support for multiple remotes and advanced options.
Keybindings
| Key | Action |
|---|---|
p | Push |
P | Pull |
Workflows
Pushing Changes
- Trigger: Press
p. - Logic Flow:
- Check Remotes: Gitti checks your configured remotes.
- Scenario A (No Remote):
- Popup: "Add Remote". You must add a remote before pushing.
- Scenario B (Multiple Remotes):
- Popup: "Choose Remote". Select which remote to push to (e.g.,
origin,upstream). - Next: Proceed to Push Options.
- Popup: "Choose Remote". Select which remote to push to (e.g.,
- Scenario C (Single Remote):
- Next: Proceed directly to Push Options.
- Push Options: A popup appears to select the push mode:
git pushgit push --forcegit push --force-with-lease
- Confirm: Select an option and press
enter.
Pulling Changes
- Trigger: Press
P(shift+p). - Logic Flow:
- Check Remotes: Similar to push, checks for existing remotes.
- Pull Options: A popup appears to select the pull mode:
git pull(Based on user configuration)git pull --rebasegit pull --no-rebase
- Confirm: Select an option and press
enter.
note
The rebase and merge options will pull from the current branch's own upstream. Support for rebasing or merging with other remotes or branches will be available in an upcoming version.