fork-dev / Tracker

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

Push up to certain commits #2226

Open CyberMew opened 3 weeks ago

CyberMew commented 3 weeks ago

I have 5 local commits. I want to push up my first 3 commits which I know is safe. I don't want to push the whole 5 commits. This does not seem doable with Fork app?

DanPristupov commented 3 weeks ago

No, it's not doable. I don't know how to design that.

CyberMew commented 3 weeks ago

Ok, just checking. I will use command line instead then.

DanPristupov commented 3 weeks ago

When it happens and I really need to push up to a commit, I create a temporary branch (tmp) on the current location of the local branch (develop), then checkout develop, reset --hard it to the desired location and push. Then I reset develop back to the old location which is hold by tmp and remove the temporary branch.

I rarely need this myself, to be honest.