🎯

git-push-origin

🎯Skill

from pc-style/pc-skills

VibeIndex|
What it does

Pushes a local Git branch to its remote origin (GitHub) for the first time, setting up upstream tracking.

πŸ“¦

Part of

pc-style/pc-skills(12 items)

git-push-origin

Installation

πŸ“‹ No install commands found in docs. Showing default command. Check GitHub for actual instructions.
Quick InstallInstall with npx
npx skills add pc-style/pc-skills --skill git-push-origin
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Push local branch to origin (GitHub) to initialize it remotely. Use when the user has created a local branch and wants to push it to GitHub for the first time, or when setting up a new branch on the remote repository.

Overview

# Git Push Origin

Push a local branch to origin to initialize it on the remote (GitHub).

When to Use

  • New branch needs to exist on GitHub
  • First push of a local branch
  • Setting up remote tracking
  • Any request to "push branch to origin" or "init branch on GitHub"

Workflow

1. Check Current State

```bash

git status

git branch --show-current

git remote -v

```

2. Push with Upstream Tracking

First push (initialize on origin):

```bash

git push -u origin

```

Or using the current branch:

```bash

git push -u origin HEAD

```

3. Verify Remote Branch

```bash

git branch -vv

git log --oneline --graph --decorate -5

```

Common Scenarios

Push current branch for the first time:

```bash

git push -u origin HEAD

```

Push specific branch:

```bash

git push -u origin feature/my-feature

```

Push after making commits:

```bash

git add .

git commit -m "feat: initial implementation"

git push -u origin HEAD

```

What `-u` (Upstream) Does

The -u flag sets up tracking between local and remote branch:

  • Future pushes can use just git push
  • Future pulls can use just git pull
  • Shows tracking info in git branch -vv

Best Practices

  • Always use -u on first push to set upstream
  • Push after initial commit(s) to back up work
  • Verify branch appears on GitHub
  • Ensure you're on the correct branch before pushing

More from this repository10

🎯
blog-post🎯Skill

Generates cybernetic developer blog posts in a dual-author MDX format with custom components and API/CLI publishing methods.

🎯
git-commit🎯Skill

Generates intelligent git commits using Conventional Commits, automatically analyzing code changes and creating semantic, descriptive commit messages.

🎯
git-commit-push🎯Skill

Automates Git workflow by staging changes, creating conventional commits, and pushing to the current branch's origin.

🎯
linear-status-check🎯Skill

Checks and validates the linear status of a project, ensuring sequential progression and identifying potential workflow disruptions.

🎯
explore-codebase🎯Skill

Quickly explore and map codebase structure, find files by patterns, and understand project architecture using Opencode's Explore agent.

🎯
code-review🎯Skill

Performs comprehensive code review analysis, identifying potential issues, best practices, and improvement suggestions across various programming languages.

🎯
git-create-branch🎯Skill

Creates a new Git branch with conventional naming, ensuring clear and structured branch management for different types of work.

🎯
load-handoff🎯Skill

Seamlessly loads and continues work from a HANDOFF.md file, reading context and preparing to execute next steps.

🎯
github-create-pr🎯Skill

Creates a GitHub pull request from a specified branch to another, with optional title, body, and assignee configuration.

🎯
create-handoff🎯Skill

Generates a comprehensive HANDOFF.md document to preserve project context, files, progress, and next steps for seamless continuation in a new AI session.