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 251761

Summary: Add push force
Product: versioncontrol Reporter: misterm <misterm>
Component: GitAssignee: Ondrej Vrabec <ovrabec>
Status: CLOSED INVALID    
Severity: normal CC: chrizzly, git, janario, jkovalsky
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 8   
Issue Type: ENHANCEMENT Exception Reporter:

Description misterm 2015-04-10 14:49:35 UTC
One of the main use cases for reset hard is to be able to push --force after it.

Use case: a github repo R2 is a fork of repo R1. R1 moves forward and R2's latest commit needs to be discarded before merging R1. The workflow is to reset --hard R2 to the previous commit and push force it before merging R1. reset --hard works, push --force is not possible from the IDE.


Product Version = NetBeans IDE Dev (Build 20150331-4b3282f09cbc)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.8.0_31
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.31-b07
Comment 1 Christian Lenz 2016-10-21 12:29:26 UTC
Yes, this is really the same use case that I have. I can't push because NB says we have things to pull first. Now I have to do a push --force with console. Please add this missing feature.
Comment 2 Christian Lenz 2018-10-25 15:20:49 UTC
I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-1554. Please discuss it there for further information.