vscode-git-graph icon indicating copy to clipboard operation
vscode-git-graph copied to clipboard

Add push commit menu

Open victorwwd opened this issue 10 months ago • 7 comments

I sometimes need to push a specific commit to the remote origin, but there's currently no way to do that. It would be great if you could add an option in the context menu to push a commit to the remote repository when right-clicking on a commit.

victorwwd avatar Feb 22 '25 08:02 victorwwd

How would you push a single commit without a branch?

hansu avatar Feb 22 '25 09:02 hansu

How would you push a single commit without a branch?

Mainly for the commits on the current branch. Use cmd: git push origin commitHash:refs/heads/branch

victorwwd avatar Feb 22 '25 10:02 victorwwd

You can do this either with the VSCode integrated tools:

https://github.com/user-attachments/assets/a6838bb5-9782-4eda-9547-5cfa7f6037a3

Or with Git Graph:

https://github.com/user-attachments/assets/2adc12ed-aba9-478a-9f2e-25519285cb16

hansu avatar Feb 22 '25 11:02 hansu

You can do this either with the VSCode integrated tools:

Peek.2025-02-22.12-47.mp4 Or with Git Graph:

Peek.2025-02-22.12-48.mp4

I know the menu you're talking about. But what I mean is to submit the commit point from the submission history, not the latest commit

victorwwd avatar Feb 22 '25 16:02 victorwwd

You mean you have a branch locally and want to push the branch some commits behind HEAD?

hansu avatar Feb 22 '25 16:02 hansu

You mean you have a branch locally and want to push the branch some commits behind HEAD?

Image

victorwwd avatar Feb 24 '25 02:02 victorwwd

This can be achieved with Git Lense. RIght click on commit -> push to commit...

Image

dzid26 avatar Sep 25 '25 15:09 dzid26