This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268245 - Git - Smart Workflow Support
Summary: Git - Smart Workflow Support
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-28 09:12 UTC by bht
Modified: 2016-09-28 09:12 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2016-09-28 09:12:41 UTC
My apologies if my request is too ignorant or too unspecific. I am a Git newbie.

My wish  is for a feature that helps a novice with a simple workflow as follows.

The work flow is this:

I am the single person on the project and all my changes are local. I want only a HEAD single line of changes. I commit frequently but I also make mistakes frequently where I have to revert back to a version a few commits back.

So I make a mistake and check out from a few commits back. My aim is to forget the bad changes after the commit a few changes back. When I commit again, then I get:

Detached HEAD state
HEAD is detached in the repository
It is recommended to switch to a branch before committing your changes.
Do you still want to commit?

It scares the hell out of me and I can't get out of it. I can't think of the branch because the concept does not exist in my head for what I want to do.

The IDE should help me here do the right thing without having any GIT knowledge. I would like to report back on the benefits of NetBeans helping someone learn the underlying technology by means of another example.

The NetBeans Maven dependency tree viewer can detect version conflicts. The true benefit is that it gives the user a dialog with two different options on how to resolve such a conflict. This is such a powerful tool, and I have used this to help many others who do not even use NetBeans. By means of this feature, I have learned about Maven more than I would have had the chance otherwise.

So with Git, I would like a feature that a) lets me execute the right thing when I need to revert back to a previous version, and b) how to recover from this nasty Detached HEAD state scenario with a few button clicks.