Git push branch
Skill MarcoAntolini/cursor-sync/cursor-skills/git-push-branch
Just a repo to sync my cursor skills, rules and commands.
npx -y skills add MarcoAntolini/cursor-sync --skill git-push-branchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Pushes existing commits on the current branch to its upstream. No stage, commit, or history rewrite.
SKILL.md
0.8 KB, 159 tokens by cl100k_base, as published. Nobody here has run it
Git push branch
Push only what is already committed on the current branch.
Steps
- Identify the branch:
git branch --show-currentandgit status -sb. - Push:
- Upstream set →
git push - No upstream →
git push -u origin HEAD(or the branch’s remote-tracking equivalent)
- Upstream set →
- Done when: the remote reports a successful update for this branch, or you have explained a rejection and stopped for instructions.
Guardrails
- Working tree and local commits stay untouched: no
add,commit, amend, rebase, or reset. - Non-fast-forward rejection → explain and ask how to proceed. Force-push only if the user explicitly requests it in this message.