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 - Add push force
Summary: Add push force
Status: CLOSED INVALID
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.2
Hardware: PC Windows 8
: P3 normal with 4 votes (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-10 14:49 UTC by misterm
Modified: 2018-10-25 15:20 UTC (History)
4 users (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 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.