git-remote-switcher

Switch git remote origin between personal GitHub and work GHE.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/Add4x/cc-plugins --skill git-remote-switcher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-remote-switcher
Source: https://github.com/Add4x/cc-plugins/tree/main/.claude/skills/git-remote-switcher
Command: npx skills add https://github.com/Add4x/cc-plugins --skill git-remote-switcher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers quickly switch the git remote origin between personal and work repositories, reducing manual steps and the risk of pushing to an incorrect remote.

Core Features & Use Cases

  • Switch Remotes: Toggle the origin URL between personal GitHub and work GitHub Enterprise for the same repository.
  • Safe Transitions: Verify the current remote, switch, and confirm the change to prevent mistakes.
  • Use Case: When collaborating on a project across personal forks and corporate environments, seamlessly switch remotes as needed.

Quick Start

To switch to Personal: git remote set-url origin github.com-personal:Add4x/cc-plugins.git To switch to Work: git remote set-url origin [email protected]:Shyju-Viswambaran/cc-plugins.git Then verify with: git remote -v

Frequently Asked Questions about git-remote-switcher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch git remote origin between personal GitHub and work GitHub Enterprise?

To switch git remotes, use the git remote set-url origin command to point to your personal GitHub or work GitHub Enterprise URL, then verify the change with git remote -v to ensure the origin was updated correctly.

What is the best way to manage git remotes for a repository shared between personal and work environments?

Managing git remotes for shared environments involves alternating the origin URL between personal GitHub and work GHE repositories, verifying the current remote before switching to ensure you push to the correct remote.

How does git remote set-url work when toggling between a personal fork and a corporate repository?

Git remote set-url works by replacing the current origin URL with the designated remote address, allowing you to toggle between a personal fork and a corporate repository while confirming the switch to prevent accidental pushes.

Can I use this remote switcher to alternate between GitHub and GitHub Enterprise for the same repository?

Yes, you can alternate between GitHub and GitHub Enterprise for the same repository by setting the origin URL to the designated personal or work remote, verifying the change, and receiving clear confirmation of the switch.

Why do I need to verify my git remote before switching between personal and work origins?

Verifying your git remote before switching is necessary to prevent mistakes and reduce the risk of pushing code to an incorrect remote, ensuring safe transitions between personal and work repositories during collaboration.

What are the limitations of manually switching git remotes for development workflows?

Manually switching git remotes introduces risks of pushing to an incorrect remote and requires multiple steps to verify and confirm the change, which this skill simplifies by automating the safe transition process.