# Gologo13 Agent Skills Git Push

> Git Push (sync with origin)

- Skill: `tomevault-io/gologo13-agent-skills-git-push` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/gologo13-agent-skills-git-push`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/gologo13-agent-skills-git-push/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/gologo13-agent-skills-git-push

---


# Git Push (sync with origin)

## Overview

Push current branch to origin and sync with remote updates.

## Steps

1. **Fetch and rebase onto latest main (optional but recommended)**
    - `git fetch origin`
    - `git rebase origin/main || git rebase --abort` (if not on main, rebase your feature branch onto latest main)
2. **Push current branch**
    - `git push -u origin HEAD`
3. **If push rejected due to remote updates**
    - Rebase and push: `git pull --rebase && git push`

## Notes

- Prefer `rebase` over `merge` for a linear history.
- If you need to force push after a rebase: you need to ask the user if they want to force push: `git push --force-with-lease`.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/gologo13) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-14 -->

