fork-dev / Tracker

Bug and issue tracker for Fork for Mac
498 stars 12 forks source link

Optional preselection of the "force push" option when pushing to remote #1958

Closed kielgillard closed 10 months ago

kielgillard commented 11 months ago

I like to rebase and force push every now and then. I suspect Fork could optimise the number of interactions required for me to do this. What follows is a suggested solution the problem.

I think a simple keyboard shortcut could help.

If I hold the Option key with this menu visible:

image

Can:

I did notice that holding the Option key with the "Repository" menu open alternates "Push..." with "Quick Push". Perhaps this is not the best solution that reduces the number of interactions required to force push to a branch.

DanPristupov commented 11 months ago

I like to rebase and force push every now and then. I suspect Fork could optimise the number of interactions required for me to do this.

Use Sync (it's available on the branch dropdown on the toolbar).

kielgillard commented 10 months ago
image

It doesn't seem like it?

DanPristupov commented 10 months ago

I checked the source code. The default branch must be named develop, main or master. Otherwise the default branch can be configured in Repository -> Settings for this repository -> General.

kielgillard commented 10 months ago

Ah, that's it. Thanks! I'll give this feature a whirl. Thank you again!

DanPristupov commented 10 months ago

I think it's pretty useful. Nowadays my own workflow is mostly: Sync, Sync, Sync then Finish (merge into main). The important thing is that 'sync' is safe and excludes a user mistake. The user won't force-push a wrong thing by mistake.