What problem does it solve?
This Skill automates the process of pushing your current Git branch to the remote 'origin', ensuring your code is backed up and shareable, while also handling potential conflicts and submodule operations.
Core Features & Use Cases
- Safe Pushing: Checks for the existence of the 'origin' remote and verifies the current branch before pushing.
- Submodule Support: Can scope push operations to a specific Git submodule, allowing for granular control in monorepos.
- Upstream Management: Automatically sets the upstream branch on the first push and checks if the local branch is ahead, behind, or diverged from the remote.
- Use Case: After completing a feature, you can use this skill to push your local branch to GitHub, ensuring it's backed up and ready for a pull request, even if you're working within a specific submodule of a larger project.
Quick Start
Use the push skill to push your current branch to origin.