Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 235887 - Shortcut for making a git commit on the whole project
Shortcut for making a git commit on the whole project
Status: RESOLVED FIXED
Product: versioncontrol
Classification: Unclassified
Component: Git
8.0
PC Linux
: P3 (vote)
: 8.0
Assigned To: Ondrej Vrabec
issues@versioncontrol
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-12 15:19 UTC by digitman222
Modified: 2016-11-25 13:06 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments
Git Commit Shortcut (52.15 KB, image/png)
2016-11-25 13:05 UTC, bugmenot1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description digitman222 2013-09-12 15:19:21 UTC
Hello,

Right now, when you have to make a git commit on the whole project, its very cumbersome, done by right clicking the project name, scrolling down to version control, selecting git, and then selecting commit.

Could you instead please provide a shortcut key which when pressed, will have the same affect as right clicking the project and selecting git commit?

I believe subversion commits happen in the same way, so may be the same (or a different key) could be used for them, but this request is specifically for git.

Thanks.
Comment 1 Ondrej Vrabec 2013-09-16 09:24:09 UTC
Tools -> Options -> Keymap, find the git commit action and set any shortcut you wish
Comment 2 digitman222 2013-09-17 14:37:39 UTC
I couldn't find a 'git commit' option, I only found a 'commit' option, for which I set a shortcut and tried it. However, this option only works for committing a single file, which is already easy enough. I'm talking about a shortcut for committing the whole project, instead of having to right click the project, go under versioning, etc. Not just committing a single file at a time.
Comment 3 Ondrej Vrabec 2013-09-17 14:44:08 UTC
> I couldn't find a 'git commit' option
Sure its there: Commit... action under category Git => git commit

> However, this option only works for committing a single file, which is already easy enough
Then you probably did not select the whole project but kept selection on just the file.
1) Set the keyboard shortcut
2) Select a project you want to commit
3) Press the shortcut -> commit dialog for the currently selected project opens
Comment 4 digitman222 2013-09-17 14:48:56 UTC
Selecting a project is better, but its also another tedious step which you shouldn't have to do. My request is for a key which will work from within any file you are and wouldn't require selecting the project, something like 'Commit project', you could press the shortcut and it would commit it.
Comment 5 Ondrej Vrabec 2013-09-18 08:33:32 UTC
Tools -> Options -> Keymap -> Git/Commit Project...

fix: http://hg.netbeans.org/core-main/rev/ca51cb132a44
Comment 6 digitman222 2013-09-18 17:05:08 UTC
Awesome, thank you!

Would it be possible to also add a 'Push Project' key to the keymap which functions the same way, but when you press it, it pushes the project to a remote repo?
Comment 7 Ondrej Vrabec 2013-09-18 17:28:48 UTC
(In reply to digitman222 from comment #6)
> Would it be possible to also add a 'Push Project' key to the keymap which
> functions the same way, but when you press it, it pushes the project to a
> remote repo?
Push to Upstream (already available) should do the same job, or not?
Comment 8 digitman222 2013-09-18 17:32:16 UTC
Push to upstream never works for me, when I try it I always get the message 'No tracked remote branch specified for local master'.
Comment 9 Ondrej Vrabec 2013-09-18 18:06:47 UTC
(In reply to digitman222 from comment #8)
> Push to upstream never works for me, when I try it I always get the message
> 'No tracked remote branch specified for local master'.
Then setup remote tracking for your local branch: http://stackoverflow.com/questions/520650/how-do-you-make-an-existing-git-branch-track-a-remote-branch or wait for bug #230991 to be implemented
Comment 10 bugmenot1 2016-11-25 13:05:09 UTC
Created attachment 163025 [details]
Git Commit Shortcut
Comment 11 bugmenot1 2016-11-25 13:06:41 UTC
What is the recommended shortcut for Git commit?

May be Strg+F1 ?


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo